503 with a single node
nichele Apr 10, 2013 4:28 AMHi all,
i'm doing some stress tests and i have a strange behaviour.
The main components of my system are:
tomcat 7 + java 1.7 + mod_cluster 1.2.0 + httpd 2.2.24
At the moment i have both tomcat and httpd running on a single node. On a different host i'm running my stress client.
My client simulates "just" 15 concurrent users.
The issue i'm having is that after a wihle (usually some minutes) some requests fail with a 503. I say "some requests" since i'm talking about 5/8 failures every 500k requests. Strange thing is that the system keeps working a part that failing requests.
In the httpd log i see:
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(698): ajp_read_header: ajp_ilink_received 04
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(708): ajp_parse_type: got 04
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(527): ajp_unmarshal_response: status = 200
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(548): ajp_unmarshal_response: Number of headers is = 5
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(610): ajp_unmarshal_response: Header[0] [X-aaaa] = [aaaaaa]
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(610): ajp_unmarshal_response: Header[1] [Set-Cookie] = []
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(610): ajp_unmarshal_response: Header[2] [Accept-Encoding] = [gzip,deflate]
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(610): ajp_unmarshal_response: Header[3] [Content-Type] = [application/vnd.syncml+xml]
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(620): ajp_unmarshal_response: ap_set_content_type done
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(610): ajp_unmarshal_response: Header[4] [Content-Length] = [628]
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(698): ajp_read_header: ajp_ilink_received 03
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(708): ajp_parse_type: got 03
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(698): ajp_read_header: ajp_ilink_received 03
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(708): ajp_parse_type: got 03
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(698): ajp_read_header: ajp_ilink_received 05
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(708): ajp_parse_type: got 05
[Wed Apr 10 07:20:28 2013] [debug] mod_proxy_ajp.c(625): proxy: got response from 10.32.20.35:8009 (10.32.20.35)
[Wed Apr 10 07:20:28 2013] [debug] proxy_util.c(2031): proxy: AJP: has released connection for (10.32.20.35)
[Wed Apr 10 07:20:28 2013] [debug] mod_proxy_cluster.c(1543): proxy: byrequests balancer FAILED
[Wed Apr 10 07:20:28 2013] [debug] mod_proxy_cluster.c(1543): proxy: byrequests balancer FAILED
[Wed Apr 10 07:20:28 2013] [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state
[Wed Apr 10 07:20:28 2013] [debug] mod_proxy_cluster.c(1543): proxy: byrequests balancer FAILED
[Wed Apr 10 07:20:28 2013] [error] proxy: CLUSTER: (balancer://mycluster). All workers are in error state
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(698): ajp_read_header: ajp_ilink_received 04
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(708): ajp_parse_type: got 04
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(527): ajp_unmarshal_response: status = 200
[Wed Apr 10 07:20:28 2013] [debug] ajp_header.c(548): ajp_unmarshal_response: Number of headers is = 5
...
....
In my tomcat server.xml i have:
<Listener className="org.jboss.modcluster.container.catalina.standalone.ModClusterListener"
advertise="false"
proxyList="perf-ds-01:6666"
maxAttempts="3"
nodeTimeout="600"
workerTimeout="60"
ping="60"
stickySession="true"
stickySessionRemove="false"
stickySessionForce="false"
loadMetricClass="org.jboss.modcluster.load.metric.impl.AverageSystemLoadMetric"
loadMetricCapacity="5"
/>
Do you have any idea about the reason ?
thanks a lot in advance
ste