[users@httpd] FW: TimeOut expired | Multiple Balancers using multiple workers | Apache 2.2.17
We identified the root-cause: - due to the same "BalancerMembers" (incl. route-names) for "fs4_javaclient_over_http" and "fs4_webclient_over_http", requests that are routed to "fs4_webclient_over_http" do take the timeout of 90 seconds of "fs4_javaclient_over_http". So, it seems to be the only solution to really separate both by specifying unique BalancerMembers (using unique "route"-names). The consequence: the tomcat configuration has to be adapted as well. Do you agree? From: King Holger (CI/AFP2) [mailto:holger.k...@de.bosch.com] Sent: Mittwoch, 16. Februar 2011 21:43 To: 'users@httpd.apache.org' Subject: [users@httpd] TimeOut expired | Multiple Balancers using multiple workers | Apache 2.2.17 Hi group, we have the following topology up and running: Apache2 (works as load-balancer) | | Tomcat1Tomcat2 (rb-wcmstc1) (rb-wcmstc2) using the following TWO balancers named "fs4_javaclient_over_http" and "fs4_webclient_over_http" specifying DIFFERENT TIMEOUT VALUES with "90" and "660" seconds: BalancerMember ajp://rb-wcmstc1.xx.x.xxx:8009 loadfactor=100 retry=10 route=rb-wcmstc1 connectiontimeout=5 timeout=90 BalancerMember ajp://rb-wcmstc2.xx.x.xxx:8009 loadfactor=100 retry=10 route=rb-wcmstc2 connectiontimeout=5 timeout=90 ProxySet stickysession=JSESSIONID|jsessionid ProxySet lbmethod=byrequests ProxySet scolonpathdelim=On ProxySet nofailover=Off BalancerMember ajp://rb-wcmstc1.xx.x.xxx:8009 loadfactor=100 retry=10 route=rb-wcmstc1 connectiontimeout=5 timeout=660 BalancerMember ajp://rb-wcmstc2.xx.x.xxx:8009 loadfactor=100 retry=10 route=rb-wcmstc2 connectiontimeout=5 timeout=660 ProxySet stickysession=JSESSIONID|jsessionid ProxySet lbmethod=byrequests ProxySet scolonpathdelim=On ProxySet nofailover=Off Incoming requests for ONE TYPE of HTTP-Client are using the "fs4_javaclient_over_http" balancer via: RewriteCond %{REQUEST_URI} ^/servlet/ClientIO/* [NC] RewriteRule ^/(.*) balancer://fs4_javaclient_over_http/$1 [proxy,last] the other HTTP-CLIENT is using "fs4_webclient_over_http": RewriteCond %{REQUEST_URI} !^/servlet/ClientIO/* [NC] RewriteCond %{REQUEST_URI} !^/index.html RewriteRule ^/(.*) balancer://fs4_webclient_over_http/$1 [proxy,last] This is done to separate connection losts for long running requests. Formerly, when one Client provoked a request that took longer than the configured "timeout" value, both clients lost their connection due to a Tomcat switch. THE PROBLEM - in Apache2 "error_log" we see that a TIMEOUT HAS EXPIRED: [Wed Feb 16 19:43:08 2011] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header This leads to a switching of the Tomcat from "rb-wcmstc1" to "rb-wcmstc2" or vice versa only for requests that run over the "fs4_webclient_over_http" balancer. But It's really strange, that we can't find any request that takes longer than the configured TIMEOUT parameter of "660" seconds (see config above) within the Apache2 ACCESS-Log. What we can see is: there are long running requests - but they do not reach the value of 660 seconds. When enabling "debug" LogLevel we see more details (see excerpt enclosed). Our questions: - is the configuration okay? - which timeout is expired? (connectiontimeout?, replytimeout?, etc.) - why does it happen? - is it a Tomcat connection-problem? access_log_debug.log Description: access_log_debug.log - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] mod_cache and caching .php with query strings
- Original Message - > Hi > > I'm using Debian's apache 2.2.26 with mod_fcgid for PHP. My CMS Given that the latest available version is 2.2.17, that would surprise me. > Drupal > rewrites all URLs so that they execute main index.php, e.g. > http://localhost/node/1 -> http://localhost/index.php?q=node/1. The > problem is that mod_disk_cache only caches the URL > "http://localhost/index.php?"; and as a result all Drupal pages are > served as the first one that hit the cache. I tried explicitly adding > "CacheIgnoreQueryString Off" but this doesn't help. > > Is this a bug? Not really: http://httpd.apache.org/docs/current/caching.html#overview """... mod_cache is a URL mapping module, which means that if a URL has been cached, and the cached version of that URL has not expired, the request will be served directly by mod_cache. This means that any other stages that might ordinarily happen in the process of serving a request -- for example being handled by mod_proxy, or mod_rewrite -- won't happen. But then this is the point of caching content in the first place.""" > Regards, > Ognyan Kulev Is it possible that you do *not* use mod_rewrite? And instead use: FallbackResource? http://httpd.apache.org/docs/current/mod/mod_dir.html#fallbackresource i -- Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] long process
- Original Message - > Hy, > I've this long process. > > USER PID %CPU %MEMVSZ RSS TTY STAT START TIME > COMMAND > wwwrun 29503 99.3 0.6 311160 27808 ?RFeb15 1151:58 > /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL What does long process mean? Is the command line too long? Or do you mean that the process has been running for too long now? 2 days isn't particularly long if this were the *parent* process. If it isn't well.. that's a different case. > It use high cpu from many hours. > How I can see which it a causes/script which running? What does strace say? What does mod_status say? What is the server doing in general which would give us a hint of what *could* be going on? -- Does it proxy? Run CGI? mod_php? Does it serve and receive Dav on an SSL line, handling gzip inflate and deflate? etc Please realize that Apache httpd is a multipurpose server. So a `ps` line doesn't tell us *anything* about what it's doing. > which netstat I see which this process it's in CLOSE_WAIT > tcp0 0 ::1:51504 ::1:143 > CLOSE_WAIT 29503/httpd2-prefor This on the other hand is more interesting. Has this been there for as long as the process? Also note that the connection IP is ::1 -- could this just be the internal dummy connection? Or is this you? Again: What does mod_status say? > Thank you for help me, Marco i -- Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] RE: Rewrite conflicts with partial downloads
> Corrected solution .htaccess file, currently implemented in > /cmta_test/ > directory. Sorry to only chime in now - but I don't have enough of a clue about mod_rewrite, so I don't feel comfortable answering more complex questions. The one thing I do know is that we do not recommend putting RewriteRules in .htaccess, when you have access to the server's configuration files. http://wiki.apache.org/httpd/RewriteContext i -- Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] mod_cache and caching .php with query strings
На 17.2.2011 г. 11:11 ч., Igor Galić написа: I'm using Debian's apache 2.2.26 with mod_fcgid for PHP. My CMS Given that the latest available version is 2.2.17, that would surprise me. 2.2.16, yeah :-) Is it possible that you do *not* use mod_rewrite? And instead use: FallbackResource? http://httpd.apache.org/docs/current/mod/mod_dir.html#fallbackresource It works for Drupal and now Drupal pages are cached :-) Thank you very much :-) Unfortunately it's not enough for unpatched Drupal because Apache's mod_cache violates http://tools.ietf.org/html/rfc2616#section-14.9.3 by looking Expires header before max-age directive and Drupal always sets Expires:...1978 mentioning this rule. Regards, Ognyan Kulev - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] long process
> Original Message - >> Hy, >> I've this long process. >> >> USER PID %CPU %MEMVSZ RSS TTY STAT START TIME >> COMMAND >> wwwrun 29503 99.3 0.6 311160 27808 ?RFeb15 1151:58 >> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL > > What does long process mean? > Is the command line too long? Or do you mean that the process has been running > for too long now? 2 days isn't particularly long if this were the *parent* > process. If it isn't well.. that's a different case. Parent process it's alive. This long process it's up from 2575 minutes. > >> It use high cpu from many hours. >> How I can see which it a causes/script which running? > > What does strace say? > What does mod_status say? > > What is the server doing in general which would give us a hint of > what *could* be going on? -- Does it proxy? Run CGI? mod_php? > Does it serve and receive Dav on an SSL line, handling gzip > inflate and deflate? etc > > Please realize that Apache httpd is a multipurpose server. So > a `ps` line doesn't tell us *anything* about what it's doing. > If I run this command #strace -p 29503 the output it's this >>Process 29503 attached - interrupt to quit and not change after 1 hours (seems to do nothing). mod_status now is not enabled and If I would enable, I do restart and kill the process. Loaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) actions_module (shared) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_default_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) dir_module (shared) env_module (shared) expires_module (shared) include_module (shared) log_config_module (shared) mime_module (shared) negotiation_module (shared) setenvif_module (shared) ssl_module (shared) userdir_module (shared) php5_module (shared) deflate_module (shared) rewrite_module (shared) This server it's used like web server for php pages and webmail which open imap locally. I think which problem could be a webmail+imap beacause netstat report port 143 but I'm not sure. > >> which netstat I see which this process it's in CLOSE_WAIT >> tcp0 0 ::1:51504 ::1:143 >>CLOSE_WAIT 29503/httpd2-prefor > > This on the other hand is more interesting. > Has this been there for as long as the process? > Yes. After one day netstat have same output tcp0 0 ::1:51504 ::1:143 CLOSE_WAIT 29503/httpd2-prefor > Also note that the connection IP is ::1 -- could this > just be the internal dummy connection? Or is this you? I don't know if it's one my php script of one internal dummy connection. How I can verify this? Thank you and sorry for my English, Marco - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] long process
> This server it's used like web server for php pages and webmail which > open imap locally. > I think which problem could be a webmail+imap beacause netstat report > port 143 but I'm not sure. > > > > >> which netstat I see which this process it's in CLOSE_WAIT > >> tcp0 0 ::1:51504 ::1:143 > >>CLOSE_WAIT 29503/httpd2-prefor > > > > This on the other hand is more interesting. > > Has this been there for as long as the process? > > > > Yes. After one day netstat have same output > tcp0 0 ::1:51504 ::1:143 > CLOSE_WAIT 29503/httpd2-prefor > > > Also note that the connection IP is ::1 -- could this > > just be the internal dummy connection? Or is this you? > I don't know if it's one my php script of one internal dummy > connection. How I can verify this? Ah. 143 -- I thought I had seen 443 before.. whoops. So, forget that part about internal dummy connection. Anyway: What happens when you kill off that process? > Thank you and sorry for my English, Marco i -- Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Https to Http
Hi Experts, We have below configuration. ProxyPreserveHost On ProxyPass /irjhttp://portal_host:5/irj ProxyPassReverse /irj http://portal_host:5/irj Now when execute https://Apache_Host/irjit got blank page with http://Apache_Host/irj How to retain https into return url? Best Regards, Tushar
Re: [users@httpd] long process
Il giorno 17/feb/2011, alle ore 14:14, Igor Galić ha scritto: > Ah. 143 -- I thought I had seen 443 before.. whoops. > So, forget that part about internal dummy connection. > > Anyway: What happens when you kill off that process? If I kill that process nothing happens. The process end and apache work normally. Apache bug? - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
RE: [users@httpd] long process
> Il giorno 17/feb/2011, alle ore 14:14, Igor Galić ha scritto: > > Ah. 143 -- I thought I had seen 443 before.. whoops. > > So, forget that part about internal dummy connection. > > > > Anyway: What happens when you kill off that process? > > If I kill that process nothing happens. The process end and apache work > normally. > Apache bug? You said PHP. What's the PHP execution timeout value in the php.ini. I had ran into a case where we tweaked it real high on a dev box (5m seconds) and we had a process, though somewhat idle, that never finished. The connection was disconnected but the thread didn't go away. We only discovered it when all threads were in use. In our case it was a web service that accepted some data and was supposed to do processing, which should have finished in a few seconds. Just a thought.
[users@httpd] ResinConfigServer and CauchoHost
Hi , i have installed Apache2.2.8 on Solaris 10 . In httpd.conf i had set - ResinConfigServer 203.165.30.40 28064 but i was not able to access the UI deployed in resin. Response was 503. but when i replaced ResinConfigServer by CauchoHost , it worked fine. i came to know ResinConfigServer is alternative to CauchoHost. so my question is - is there any platform specific difference between ResinConfigServer and CauchoHost? Thanks, Vivek
Re: [users@httpd] ResinConfigServer and CauchoHost
On Thu, Feb 17, 2011 at 4:54 PM, Vivek Thite-Patil wrote: > Hi , > > i have installed Apache2.2.8 on Solaris 10 . In httpd.conf i had set - > ResinConfigServer 203.165.30.40 28064 > > but i was not able to access the UI deployed in resin. Response was 503. > > but when i replaced ResinConfigServer by CauchoHost , it worked fine. > i came to know ResinConfigServer is alternative to CauchoHost. so my > question is - > > is there any platform specific difference between ResinConfigServer > and CauchoHost? > > Thanks, > Vivek > These seem to come from mod_caucho, which is not a part of apache. You should contact the company offering this software for support, not the apache mailing list. Cheers Tom - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] mod_cache and caching .php with query strings
> Unfortunately it's not enough for unpatched Drupal because Apache's > mod_cache violates http://tools.ietf.org/html/rfc2616#section-14.9.3 > by > looking Expires header before max-age directive and Drupal always > sets > Expires:...1978 mentioning this rule. IIRC, that's fixed in 2.3.. yup: http://svn.apache.org/viewvc?view=revision&revision=1069942 We might want to propose that for backport.. ..unfortunately it doesn't apply cleanly. > Regards, > Ognyan Kulev i -- Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Reverse Proxy - retry parameter in Apache/2.2.3.
Hi Tsaby, if somehow possible, you should consider upgrading from 2.2.3 mod_proxy has been completely overhauled since after 2.2.9. The current version is 2.2.17. You're 4 years and 14 versions behind. i -- Igor Galić Tel: +43 (0) 664 886 22 883 Mail: i.ga...@brainsware.org URL: http://brainsware.org/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] no log of reverse proxy
I am having a Ubuntu server apache2.conf has LogFormat "%v:%p %{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined # Define an access log for VirtualHosts that don't define their own logfile CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined and this is my apache2 vhost ServerAdmin webmaster@localhost ServerName something ProxyRequests off Order deny,allow Allow from all ProxyPreserveHost Off DocumentRoot /var/www Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined This apache2 vhost file is on the machine which is on LAN behind a reverse proxy I am not seeing any logs for requests that come forwarded via a reverse proxy in /var/log/apache2/access.log and the entries in /var/log/apache2/other_vhosts_access.log are blank what have I missed in above why I am not getting IPs coming behind the reverse proxy server. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] relay or forward or route or redirect HTTP requests
Hi there. Is it possible and if yes with what technique/program to achieve the following: Situation: I have a network with a public accessible webserver on 'WAN-a' Here runs an Apache server (CentOS Linux). This server has a second interface 'LAN-b' Further down on 'LAN-b' is a Cisco PABX (telephone server) that is managed via an internal webserver (tomcat). Goal: The setup the apache server (or other server/program/...) on 'WAN-a' in such a way that requests from external users are handled/passed/routed via the internal 'LAN-b' to the webinterface of the PABX and vice versa. I'm not sure if this is called routing, relaying, proxy, or So I don't know in what direction I need to search and investigate for a solution. Any tips guiding/leading in the right direction are very welcome. Thanks Jan-Willem Speckmann ** The information in this email is confidential and may be privileged. If you are not the intended recipient please notify us immediately by return email at cont...@regus.com Regus PLC, 26, Boulevard Royal, L-2449 Luxembourg **
[users@httpd]
- The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd]
It seems like a keyboard problem to me On 17 Feb 2011, at 10:24 PM, Can Le wrote: > > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd]
At 10:53 PM 2/17/2011 +, you wrote: It seems like a keyboard problem to me Seems more like the list got spammed to me ;-{ Paul On 17 Feb 2011, at 10:24 PM, Can Le wrote: > > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org