Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 24th, 2012, 09:45 AM
loulou loulou is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 385 loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level) 
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

Reply With Quote
  #2  
Old August 24th, 2012, 09:48 AM
loulou loulou is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 385 loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level) 
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

Reply With Quote
  #3  
Old August 24th, 2012, 02:06 PM
crownjewel82 crownjewel82 is offline
rebel with a cause
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2004
Location: The Batsh!t Crazy State.
Posts: 5,817 crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)crownjewel82 User rank is General 37th Grade (Above 100000 Reputation Level)  Folding Points: 53188 Folding Title: Beginner FolderFolding Points: 53188 Folding Title: Beginner FolderFolding Points: 53188 Folding Title: Beginner Folder
Time spent in forums: 3 Months 4 Days 12 h 16 m 39 sec
Reputation Power: 3460
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.

Reply With Quote
  #4  
Old August 24th, 2012, 03:02 PM
loulou loulou is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 385 loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level)loulou User rank is Corporal (100 - 500 Reputation Level) 
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

Reply With Quote
  #5  
Old November 14th, 2012, 01:41 PM
drc-emerge drc-emerge is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 1 drc-emerge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Help: Tomcat crashing with "org.apache.jk.common.ChannelSocket processConnection"

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap