GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Aug-2008, 04:19
jem_rayfield jem_rayfield is offline
New Member
 
Join Date: Aug 2008
Location: London
Posts: 1
jem_rayfield is on a distinguished road
Question

Socket closed + Timeout expire = [error] (70007)


Hi,

I am using apache 2.2.9 with mod_proxy_ajp to tomcat 6.
(Upgraded from 2.2.8 as cping/cpong did not work)

I keep getting tomcat socket exceptions as if apache has closed the ajp connection before tomcat can respond.

My Balancer settings are such that the ajp connection is closed on every request the apache timeout is 30secs and the tomcat connector is 20secs. As follows:

ProxyPass / balancer://Cfu/ stickysession=JSESSIONID nofailover=Off timeout=30
#ProxyPassReverse balancer://Cfu/ /
ProxyErrorOverride On
<Proxy balancer://Cfu>
BalancerMember ajp://X.X.X.X:8009 route=herring ping=120 keepalive=Off flushpackets=on disableReuse=On
BalancerMember ajp://Y.Y.Y.Y:8009 route=haddock ping=120 keepalive=Off flushpackets=on disableReuse=On
ProxySet lbmethod=byrequests
</Proxy>



The following error keeps occuring in error_log

[error] (70007)The timeout specified has expired: ajp_ilink_receive()

This is the tomcat exception:

Aug 18, 2008 2:55:35 PM org.apache.jk.core.MsgContext action
WARNING: Error sending end packet
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutp utStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStre am.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSoc ket.java:531)
at org.apache.jk.common.JkInputStream.endMessage(JkIn putStream.java:121)
at org.apache.jk.core.MsgContext.action(MsgContext.ja va:301)
at org.apache.coyote.Response.action(Response.java:18 3)
at org.apache.coyote.Response.finish(Response.java:30 5)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyo teHandler.java:195)
at org.apache.jk.common.HandlerRequest.invoke(Handler Request.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelS ocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnecti on(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnectio n.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
Aug 18, 2008 2:55:35 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2


The tomcat ajp connector configuration is as follows:

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
maxThreads="2000" bufferSize="256" connectionTimeout="60000" />



Any ideas on this one appreciated as it is nightmare...


Cheers
Jem
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set timeout on Recv call? Spidy08 C++ Forum 6 04-Jan-2008 07:11
[PROGRAM] Winsock Programming Max Payne MS Visual C++ / MFC Forum 1 09-Mar-2007 00:38

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:06.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.