I have a java web application running in Glassfish 3.1.1 on port 8080. I have
Apache running on the same server on port 80 acting as a reverse proxy (using
ajp) to Glassfish. Here is my configuration (and forgive the formatting but
the pre tags don't seem to work on this forum): In glassfish: In apache:
ProxyRequests Off ProxyPass /client ajp://10.72.8.167:8009/client
timeout=1200 ttl=1200 The problem occurs when I have around 10-15 concurrent
connections I start seeing server unavailable messages in client browsers and
this in the logs: In glassfish domain log:
[#|2013-03-28T10:02:15.742-0500|SEVERE|glassfish3.1.1|org.apache.tomcat.util.threads.ThreadPool|_ThreadID=22;_ThreadName=Thread-2;|threadpool.busy|#]
In apache error_log: [Thu Mar 28 10:13:01 2013] [error] (104)Connection reset
by peer: ajp_ilink_receive() can't receive header [Thu Mar 28 10:13:01 2013]
[error] ajp_read_header: ajp_ilink_receive failed [Thu Mar 28 10:13:01 2013]
[error] (120006)APR does not understand this error code: proxy: read response
failed from (null) (10.72.8.167) [Thu Mar 28 10:13:13 2013] [error]
(104)Connection reset by peer: ajp_ilink_receive() can't receive header [Thu
Mar 28 10:13:13 2013] [error] ajp_read_header: ajp_ilink_receive failed [Thu
Mar 28 10:13:13 2013] [error] (120006)APR does not understand this error
code: proxy: read response failed from (null) (10.72.8.167) [Thu Mar 28
10:13:35 2013] [error] (104)Connection reset by peer: ajp_ilink_receive()
can't receive header [Thu Mar 28 10:13:35 2013] [error] ajp_read_header:
ajp_ilink_receive failed [Thu Mar 28 10:13:35 2013] [error] (120006)APR does
not understand this error code: proxy: read response failed from
10.72.8.167:8009 (10.72.8.167) [Thu Mar 28 10:15:14 2013] [error]
ap_proxy_connect_backend disabling worker for (10.72.8.167) [Thu Mar 28
10:15:14 2013] [error] proxy: AJP: failed to make connection to backend:
10.72.8.167 [Thu Mar 28 10:15:15 2013] [error] (104)Connection reset by peer:
ajp_ilink_receive() can't receive header [Thu Mar 28 10:15:15 2013] [error]
ajp_read_header: ajp_ilink_receive failed [Thu Mar 28 10:15:15 2013] [error]
(120006)APR does not understand this error code: proxy: read response failed
from (null) (10.72.8.167) [Thu Mar 28 10:15:17 2013] [error] (104)Connection
reset by peer: ajp_ilink_receive() can't receive header [Thu Mar 28 10:15:17
2013] [error] ajp_read_header: ajp_ilink_receive failed [Thu Mar 28 10:15:17
2013] [error] (120006)APR does not understand this error code: proxy: read
response failed from (null) (10.72.8.167) [Thu Mar 28 10:15:18 2013] [error]
proxy: AJP: disabled connection for (10.72.8.167) [Thu Mar 28 10:15:18 2013]
[error] (104)Connection reset by peer: ajp_ilink_receive() can't receive
header [Thu Mar 28 10:15:18 2013] [error] ajp_read_header: ajp_ilink_receive
failed [Thu Mar 28 10:15:18 2013] [error] (120006)APR does not understand
this error code: proxy: read response failed from (null) (10.72.8.167) [Thu
Mar 28 10:15:18 2013] [error] proxy: AJP: disabled connection for
(10.72.8.167) [Thu Mar 28 10:15:19 2013] [error] (104)Connection reset by
peer: ajp_ilink_receive() can't receive header [Thu Mar 28 10:15:19 2013]
[error] ajp_read_header: ajp_ilink_receive failed [Thu Mar 28 10:15:19 2013]
[error] (120006)APR does not understand this error code: proxy: read response
failed from (null) (10.72.8.167) [Thu Mar 28 10:15:24 2013] [error]
(104)Connection reset by peer: ajp_ilink_receive() can't receive header [Thu
Mar 28 10:15:24 2013] [error] ajp_read_header: ajp_ilink_receive failed [Thu
Mar 28 10:15:24 2013] [error] (120006)APR does not understand this error
code: proxy: read response failed from (null) (10.72.8.167) [Thu Mar 28
10:15:24 2013] [error] proxy: AJP: disabled connection for (10.72.8.167) [Thu
Mar 28 10:15:24 2013] [error] proxy: AJP: disabled connection for
(10.72.8.167) [Thu Mar 28 10:15:24 2013] [error] proxy: AJP: disabled
connection for (10.72.8.167) [Thu Mar 28 10:15:24 2013] [error] proxy: AJP:
disabled connection for (10.72.8.167) [Thu Mar 28 10:15:24 2013] [error]
proxy: AJP: disabled connection for (10.72.8.167) [Thu Mar 28 10:15:24 2013]
[error] proxy: AJP: disabled connection for (10.72.8.167) [Thu Mar 28
10:15:28 2013] [error] (104)Connection reset by peer: ajp_ilink_receive()
can't receive header [Thu Mar 28 10:15:28 2013] [error] ajp_read_header:
ajp_ilink_receive failed Can anyone help me figure this out or where to go
from here? Thanks
--
[Message sent by forum member 'Meatwad']
View Post: http://forums.java.net/node/896003