tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Wąchała <pietr...@wp.pl>
Subject Problem with tomcat and jk module
Date Tue, 24 Jul 2012 10:37:43 GMT
Hi,
Maybe someone can help me with my tomcat problem.
Hope that wont be a big problem for you.

Im observing that our client are disconnected from server, that is very bad situation.

In jklogfile.log
[Tue Jul 24 08:43:22 2012] [17466:47245693265248] [info] jk_handler::mod_jk.c (2620): Aborting
connection for worker=loadbalancer
[Tue Jul 24 08:43:22 2012] [17023:47245693265248] [info] ajp_process_callback::jk_ajp_common.c
(1885): Writing to client aborted or client network problems
[Tue Jul 24 08:43:22 2012] [17023:47245693265248] [info] ajp_service::jk_ajp_common.c (2543):
(worker1) sending request to tomcat failed (unrecoverable), because of client write error
(attempt=1)
[Tue Jul 24 08:43:22 2012] [17023:47245693265248] [info] jk_handler::mod_jk.c (2620): Aborting
connection for worker=worker1
[Tue Jul 24 08:43:33 2012] [18684:47245693265248] [info] ajp_process_callback::jk_ajp_common.c
(1885): Writing to client aborted or client network problems
[Tue Jul 24 08:43:33 2012] [18684:47245693265248] [info] ajp_service::jk_ajp_common.c (2543):
(worker1) sending request to tomcat failed (unrecoverable), because of client write error
(attempt=1)
[Tue Jul 24 08:43:33 2012] [18684:47245693265248] [info] jk_handler::mod_jk.c (2620): Aborting
connection for worker=worker1
[Tue Jul 24 08:43:40 2012] [17349:47245693265248] [error] ajp_connection_tcp_get_message::jk_ajp_common.c
(1283): wrong message size 19 16 from 172.18.13.1:8009
[Tue Jul 24 08:43:40 2012] [17349:47245693265248] [info] ajp_handle_cping_cpong::jk_ajp_common.c
(889): awaited reply cpong, not received
[Tue Jul 24 08:43:40 2012] [17349:47245693265248] [info] ajp_maintain::jk_ajp_common.c (3225):
(worker2) failed sending request, socket -1 keepalive cping/cpong failure (errno=0)
[Tue Jul 24 08:43:52 2012] [16605:47245693265248] [error] ajp_connection_tcp_get_message::jk_ajp_common.c
(1283): wrong message size 19 16 from 172.18.13.1:8009
[Tue Jul 24 08:43:52 2012] [16605:47245693265248] [info] ajp_handle_cping_cpong::jk_ajp_common.c
(889): awaited reply cpong, not received
[Tue Jul 24 08:43:52 2012] [16605:47245693265248] [info] ajp_send_request::jk_ajp_common.c
(1511): (worker2) failed sending request, socket -1 prepost cping/cpong failure (errno=0)
[Tue Jul 24 08:43:52 2012] [16605:47245693265248] [info] ajp_send_request::jk_ajp_common.c
(1567): (worker2) all endpoints are disconnected, detected by connect check (0), cping (1),
send (0)
[Tue Jul 24 08:44:03 2012] [18149:47245693265248] [info] ajp_process_callback::jk_ajp_common.c
(1885): Writing to client aborted or client network problems
[Tue Jul 24 08:44:03 2012] [18149:47245693265248] [info] ajp_service::jk_ajp_common.c (2543):
(worker1) sending request to tomcat failed (unrecoverable), because of client write error
(attempt=1)
[Tue Jul 24 08:44:03 2012] [18149:47245693265248] [info] jk_handler::mod_jk.c (2620): Aborting
connection for worker=worker1
[Tue Jul 24 08:44:50 2012] [17831:47245693265248] [info] ajp_process_callback::jk_ajp_common.c
(1885): Writing to client aborted or client network problems
[Tue Jul 24 08:44:50 2012] [17831:47245693265248] [info] ajp_service::jk_ajp_common.c (2543):
(worker1) sending request to tomcat failed (unrecoverable), because of client write error
(attempt=1)
[Tue Jul 24 08:44:50 2012] [17831:47245693265248] [info] jk_handler::mod_jk.c (2620): Aborting
connection for worker=worker1
[Tue Jul 24 08:46:20 2012] [17857:47245693265248] [info] ajp_process_callback::jk_ajp_common.c
(1885): Writing to client aborted or client network problems
[Tue Jul 24 08:46:20 2012] [17857:47245693265248] [info] ajp_service::jk_ajp_common.c (2543):
(worker1) sending request to tomcat failed (unrecoverable), because of client write error
(attempt=1)
[Tue Jul 24 08:46:20 2012] [17857:47245693265248] [info] jk_handler::mod_jk.c (2620): Aborting
connection for worker=worker1
[Tue Jul 24 08:48:16 2012] [16987:47245693265248] [error] ajp_connection_tcp_get_message::jk_ajp_common.c
(1283): wrong message size 19 16 from 172.18.13.2:8009
[Tue Jul 24 08:48:16 2012] [16987:47245693265248] [info] ajp_handle_cping_cpong::jk_ajp_common.c
(889): awaited reply cpong, not received
[Tue Jul 24 08:48:16 2012] [16987:47245693265248] [info] ajp_maintain::jk_ajp_common.c (3225):
(worker3) failed sending request, socket -1 keepalive cping/cpong failure (errno=0)
[Tue Jul 24 08:48:18 2012] [32038:47245693265248] [info] ajp_process_callback::jk_ajp_common.c
(1885): Writing to client aborted or client network problems
[Tue Jul 24 08:48:18 2012] [32038:47245693265248] [info] ajp_service::jk_ajp_common.c (2543):
(worker3) sending request to tomcat failed (unrecoverable), because of client write error
(attempt=1)
[Tue Jul 24 08:48:21 2012] [32038:47245693265248] [info] service::jk_lb_worker.c (1388): service
failed, worker worker3 is in local error state
[Tue Jul 24 08:48:21 2012] [32038:47245693265248] [info] service::jk_lb_worker.c (1407): unrecoverable
error 200, request failed. Client failed in the middle of request, we can't recover to another
instance.

In apache error log, there isn&#8217;t any errors attached to the jk module.

In catalina log:

2012-07-24 09:01:19 org.apache.jk.core.MsgContext action
WARNING: Unable to send headers
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:532)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:327)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
        at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95)
        at om.face.channel.webapi.push.SubscriptionHandle.flush(SubscriptionHandle.java:325)
        at om.face.channel.webapi.push.SubscriptionHandle.write(SubscriptionHandle.java:290)
        at om.face.channel.webapi.push.SubscriptionHandle.run(SubscriptionHandle.java:230)
        at java.lang.Thread.run(Unknown Source)
2012-07-24 09:01:21 org.apache.jk.core.MsgContext action
WARNING: Unable to send headers
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:532)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:327)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
        at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95)
        at om.face.channel.webapi.push.SubscriptionHandle.flush(SubscriptionHandle.java:325)
        at om.face.channel.webapi.push.SubscriptionHandle.write(SubscriptionHandle.java:290)
        at om.face.channel.webapi.push.SubscriptionHandle.run(SubscriptionHandle.java:230)
        at java.lang.Thread.run(Unknown Source)
2012-07-24 09:01:45 org.apache.jk.core.MsgContext action
WARNING: Unable to send headers
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:532)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:327)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
        at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95)
        at om.face.channel.webapi.push.SubscriptionHandle.flush(SubscriptionHandle.java:325)
        at om.face.channel.webapi.push.SubscriptionHandle.write(SubscriptionHandle.java:290)
        at om.face.channel.webapi.push.SubscriptionHandle.run(SubscriptionHandle.java:230)
        at java.lang.Thread.run(Unknown Source)
2012-07-24 09:03:37 org.apache.jk.core.MsgContext action
WARNING: Unable to send headers
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:532)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:327)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
        at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95)
        at om.face.channel.webapi.push.SubscriptionHandle.flush(SubscriptionHandle.java:325)
        at om.face.channel.webapi.push.SubscriptionHandle.write(SubscriptionHandle.java:290)
        at om.face.channel.webapi.push.SubscriptionHandle.run(SubscriptionHandle.java:230)
        at java.lang.Thread.run(Unknown Source)
2012-07-24 09:05:35 org.apache.jk.core.MsgContext action
WARNING: Unable to send headers
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:532)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:327)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
        at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95)
        at om.face.channel.webapi.push.SubscriptionHandle.flush(SubscriptionHandle.java:325)
        at om.face.channel.webapi.push.SubscriptionHandle.write(SubscriptionHandle.java:290)
        at om.face.channel.webapi.push.SubscriptionHandle.run(SubscriptionHandle.java:230)
        at java.lang.Thread.run(Unknown Source)
2012-07-24 09:06:43 org.apache.jk.core.MsgContext action
WARNING: Unable to send headers
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:532)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:327)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
        at org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:95)
        at om.face.channel.webapi.push.SubscriptionHandle.flush(SubscriptionHandle.java:325)
        at om.face.channel.webapi.push.SubscriptionHandle.write(SubscriptionHandle.java:290)
        at om.face.channel.webapi.push.SubscriptionHandle.run(SubscriptionHandle.java:230)
        at java.lang.Thread.run(Unknown Source)
2012-07-24 09:09:50 org.apache.jk.core.MsgContext action
WARNING: Unable to send headers


I attached file with dump of working tomcat.

My config is something like that:
worker.list=worker1,worker2,worker3,loadbalancer

# Common worker properties
worker.template.port=8009
worker.template.type=ajp13
worker.template.connection_pool_timeout=600
worker.template.socket_timeout=60
#worker.template.socket_timeout=120
worker.template.ping_mode=A

# Set properties for worker1 by referencing worker templates above
# Connection to local Tomcat (Trade Client)
worker.worker1.reference=worker.template
worker.worker1.host=localhost
worker.worker1.connect_timeout=10000
worker.worker1.prepost_timeout=10000


# Set properties for worker2 and worker3 by referencing worker templates above
# Connection to remote JBOSS (ATE - Condico Clearing Station)
worker.worker2.reference=worker.template
worker.worker2.host=ate1
worker.worker2.lbfactor=1
worker.worker2.connect_timeout=10000
worker.worker2.prepost_timeout=10000

worker.worker3.reference=worker.template
worker.worker3.host=ate2
worker.worker3.lbfactor=1

# Load Balancer worker
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=worker2,worker3

for now i dont know what log, or what information can be helpful.
Iam trying to resolve problem for few days, but unfurtunately i cant.

Piotr



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message