[users@httpd] apache returns error 500 under load
Hi, i have a setup on OSX Mavericks, Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8 utilizing mod_proxy. Mod_proxy then routes data to a tomcat 7.0.42 back end for processing. To test my app I created a selenium test app, that opens about 10 clients using FireFox all at once and navigates through the app. It then closes these clients after a few minutes and then opens a set of 10 again. Under this load certain requests randomly return error 500. Firefox even downloads a file in these situations and if I open the file it reads, server error, error 500, The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. I don't know if the browser is returning this or apache. There are no errors in apache error.log that help diagnose this. If I bypass apache and go directly to tomcat everything works fine. I tried playing around with maxClients settings and still saw this error. I even turned off keep-alive and mod_cache. Nothing is working. I suspect based on the nature of the issue my application is very chatty and I need to configure apache properly to handle bursts of traffic. Any pointers? I have spent hours on this without any progress. Thank you!
Re: [users@httpd] Off Topic
EC == Eric Covener cove...@gmail.com writes: EC Try logging the envvar. Whether it's logged the way you want or not, EC you can either focus on or remove the access control directives OK, I tried logging for the first time today. But I found that even at trace8 level, some things were never logged. Those are probably (?) things that don't actually get run and await documentation as per mentioned in https://issues.apache.org/bugzilla/show_bug.cgi?id=55957#c4 On the other hand, the results of every If I was able to log with great clarity. EC (also, use require env foo instead of order/allow/deny) Alas those along with If I cannot use, as I am trying to find a way to rewrite If %{HTTP_HOST} !~ /radioscanningtw\.jidanni\.org/i Deny from all /If so it will work in Apache 2.2.9! - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Off Topic
On Sat, Jan 11, 2014 at 4:46 AM, jida...@jidanni.org wrote: EC == Eric Covener cove...@gmail.com writes: EC Try logging the envvar. Whether it's logged the way you want or not, EC you can either focus on or remove the access control directives OK, I tried logging for the first time today. But I found that even at trace8 level, some things were never logged. Log as in custom access log to see if the environment variable is ultimately set. e.g. With %{envvar-name}e. Those are probably (?) things that don't actually get run and await documentation as per mentioned in https://issues.apache.org/bugzilla/show_bug.cgi?id=55957#c4 On the other hand, the results of every If I was able to log with great clarity. More likely you are conflating one recent anecdote with some currently undiagnosed issue/question. Is there even a subrequest involved in this failing test? EC (also, use require env foo instead of order/allow/deny) Alas those along with If I cannot use, as I am trying to find a way to rewrite If %{HTTP_HOST} !~ /radioscanningtw\.jidanni\.org/i Deny from all /If so it will work in Apache 2.2.9! There's no point in using a 2.2 compat directive inside a 2.4-only directive. -- Eric Covener cove...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Off Topic
Yes I am looking for some if test I can use that also works in subenvironments. If works great but Dreamhost is still at 2.2.9. SetEnvIf works great, but not in subenvironments. Alas, it seems there really are no other methods $ w3m -dump file:///usr/share/doc/apache2-doc/manual/en/mod/directives.html |grep If * ElseIf * If * IfDefine * IfModule * IfVersion * SetEnvIf * SetEnvIfExpr * SetEnvIfNoCase - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org