The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Java Help
|
Help: Tomcat crashing with "org.apache.jk.common.ChannelSocket processConnection"
Discuss Help: Tomcat crashing with "org.apache.jk.common.ChannelSocket processConnection" in the Java Help forum on Dev Shed. Help: Tomcat crashing with "org.apache.jk.common.ChannelSocket processConnection" Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 24th, 2012, 09:45 AM
|
|
Contributing User
|
|
Join Date: Sep 2005
Posts: 385
  
Time spent in forums: 4 Days 20 h 7 m 56 sec
Reputation Power: 9
|
|
|
Help: Tomcat crashing with "org.apache.jk.common.ChannelSocket processConnection"
Hi,
I need help with debugging. I am using Tomcat 6.0.24 and using mod_proxy to connect to httpd.
Seems like roughly 48 hours our server is crashing. I noticed that there were these messages that were in the log file before the crash occurs:
Aug 23, 2012 11:30:14 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
Then about 20 minutes later these messages appear:
Aug 24, 2012 12:05:27 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError: PermGen space) executing org.apache.jk.common.ChannelSocket$SocketConnection@dd8862d, terminating thread
Aug 24, 2012 12:29:24 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: PermGen space
then a flood of these messages again:
Aug 24, 2012 12:50:41 AM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
Which brings everything down forcing a restart.
I'm thinking this has to do with Apache Httpd fronting Tomcat with mod_proxy, but I'm not certain.
Any suggestions? Or anything else I can provide that could help me troubleshoot this issue?
Thank you
|

August 24th, 2012, 09:48 AM
|
|
Contributing User
|
|
Join Date: Sep 2005
Posts: 385
  
Time spent in forums: 4 Days 20 h 7 m 56 sec
Reputation Power: 9
|
|
|
Also, in the Apache Httpd logs I found these messages if this helps:
[Fri Aug 24 00:11:39 2012] [error] (70014)End of file found: ajp_ilink_receive() can't receive header
[Fri
[Fri Aug 24 00:20:10 2012] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Fri Aug 24 00:21:10 2012] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
|

August 24th, 2012, 02:06 PM
|
|
rebel with a cause
|
|
Join Date: May 2004
Location: The Batsh!t Crazy State.
|
|
I'm not an expert on tomcat but this is looks like a big clue: java.lang.OutOfMemoryError: PermGen space
The solution probably involves looking for memory leaks and possibly increasing your heap size.
Hope this helps.
__________________
Dear God. What is it like in your funny little brains? It must be so boring.
|

August 24th, 2012, 03:02 PM
|
|
Contributing User
|
|
Join Date: Sep 2005
Posts: 385
  
Time spent in forums: 4 Days 20 h 7 m 56 sec
Reputation Power: 9
|
|
|
Yes, this was our first thought and we've been bumping up PermSize/MaxPermSize considerably . We're thinking if this is relative to maybe mod_proxy is not receiving responses or it's timing out.
Here is our JVM settings:
JAVA_OPTS="-server -d64"
JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m"
JAVA_OPTS="$JAVA_OPTS -XX:PermSize=300m -XX:MaxPermSize=300m"
JAVA_OPTS="$JAVA_OPTS -XX:NewSize=1024m -XX:MaxNewSize=1024m"
JAVA_OPTS="$JAVA_OPTS -XX:TargetSurvivorRatio=90 -XX:SurvivorRatio=5 -XX:MaxTenuringThreshold=12"
JAVA_OPTS="$JAVA_OPTS -XX:+CMSClassUnloadingEnabled"
Our physical memory is set to 10G and only half is ever consumed. However, then the cpu goes up to 100% and stalls and we start seeing these errors/warnings.
Thanks
|

November 14th, 2012, 01:41 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 1
Time spent in forums: 3 m 56 sec
Reputation Power: 0
|
|
|
did you ever track down a resolution to this?
i am seeing similar errors with Apache/2.2.14, Tomcat/6.0.24, and ajp...i'd be very curious to hear if you found a way to fix this.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|