You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Jimmy Phelan :: Blacknight Solutions" <ji...@blacknight.ie> on 2007/08/17 17:44:34 UTC

Java freezing at 100% usage, tomcat 5, java 5

Hi All

 

We are using tomcat 5 on a shared hosting server. The server is running
DirectAdmin as its control panel. It is running RedHat Enterprise 4, tomcat
5.5.23 and jvm 1.5.0_08-b03

 

I have attached a stack trace (from kill -3)

 

We are using a plugin from da-plugin.com to use tomcat in DirectAdmin, but
the support on this is less than stellar, and we don't believe it to be the
issue

 

What seems to be happening is that every now and again the java process
jumps to 100% usage, and sticks. Only a service tomcatd restart will kill it
and restart the server

 

Tomcat 5 has the following variables enables in its process

 

-Xmx512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath
:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/commons-logging-a
pi.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp
org.apache.catalina.startup.Bootstrap start

 

We are also running tomcat-4 in tandem with tomcat 5, it runs with the
following variables

 

-Djava.endorsed.dirs=/usr/local/tomcat.4.1.33/common/endorsed -classpath
/usr/local/java/lib/tools.jar:/usr/local/tomcat.4.1.33/bin/bootstrap.jar
-Dcatalina.base=/usr/local/tomcat.4.1.33
-Dcatalina.home=/usr/local/tomcat.4.1.33
-Djava.io.tmpdir=/usr/local/tomcat.4.1.33/temp
org.apache.catalina.startup.Bootstrap start

 

We have been trying to sort this out for a while, but cant see anything, can
anyone else?

 

Jimmy

 


Re: Java freezing at 100% usage, tomcat 5, java 5

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
everything seems to be blocked on this one

"TP-Processor62" daemon prio=1 tid=0x081ef7e0 nid=0x6971 runnable 
[0x94f12000..0x94f130a0]
at java.lang.String.intern(Native Method)
at javax.management.ObjectName.setCanonicalName(ObjectName.java:733)
at javax.management.ObjectName.construct(ObjectName.java:565)
at javax.management.ObjectName.<init>(ObjectName.java:1304)
at 
org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:461)
at org.apache.jk.common.HandlerRequest.checkRequest(HandlerRequest.java:357)
- locked <0x7267ab08> (a java.lang.Object)
at 
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:367)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:261)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)

and that seems to point to the OS/JDK version combo you are running.

try to upgrade to a later JDK, and see if that resoves the issue for you

Filip


Jimmy Phelan :: Blacknight Solutions wrote:
>
> Hi All
>
> We are using tomcat 5 on a shared hosting server. The server is 
> running DirectAdmin as its control panel. It is running RedHat 
> Enterprise 4, tomcat 5.5.23 and jvm 1.5.0_08-b03
>
> I have attached a stack trace (from kill -3)
>
> We are using a plugin from da-plugin.com to use tomcat in DirectAdmin, 
> but the support on this is less than stellar, and we don’t believe it 
> to be the issue
>
> What seems to be happening is that every now and again the java 
> process jumps to 100% usage, and sticks. Only a service tomcatd 
> restart will kill it and restart the server
>
> Tomcat 5 has the following variables enables in its process
>
> -Xmx512M 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties 
> -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath 
> :/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/commons-logging-api.jar 
> -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat 
> -Djava.io.tmpdir=/usr/local/tomcat/temp 
> org.apache.catalina.startup.Bootstrap start
>
> We are also running tomcat-4 in tandem with tomcat 5, it runs with the 
> following variables
>
> -Djava.endorsed.dirs=/usr/local/tomcat.4.1.33/common/endorsed 
> -classpath 
> /usr/local/java/lib/tools.jar:/usr/local/tomcat.4.1.33/bin/bootstrap.jar 
> -Dcatalina.base=/usr/local/tomcat.4.1.33 
> -Dcatalina.home=/usr/local/tomcat.4.1.33 
> -Djava.io.tmpdir=/usr/local/tomcat.4.1.33/temp 
> org.apache.catalina.startup.Bootstrap start
>
> We have been trying to sort this out for a while, but cant see 
> anything, can anyone else?
>
> Jimmy
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.484 / Virus Database: 269.12.0/957 - Release Date: 8/16/2007 1:46 PM


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


Re: Java freezing at 100% usage, tomcat 5, java 5

Posted by Alexey Solofnenko <A....@mdl.com>.
I do not know the answer. A similar behaviour happened with our servers 
when finilizer dead-locked. In your case Finilizer did not dead-lock, 
but it fails with exception and I do not know if it recovers after that. 
Try checking stack trace several times in a row and see what the 
finilizer does.

"Finalizer" daemon prio=1 tid=0x0809d908 nid=0x4834 waiting for monitor 
entry [0xb24a1000..0xb24a1ea0]
at java.lang.Throwable.getStackTraceElement(Native Method)
at java.lang.Throwable.getOurStackTrace(Throwable.java:592)
- locked <0x792bef30> (a java.net.SocketException)
at java.lang.Throwable.printStackTrace(Throwable.java:511)
- locked <0x792bf368> (a java.io.PrintWriter)
at com.mysql.jdbc.Util.stackTraceToString(Util.java:291)
at 
com.mysql.jdbc.CommunicationsException.<init>(CommunicationsException.java:186)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2723)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1401)
at com.mysql.jdbc.Connection.realClose(Connection.java:4882)
at com.mysql.jdbc.Connection.cleanup(Connection.java:2062)
at com.mysql.jdbc.Connection.finalize(Connection.java:3369)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)


- Alexey.

Jimmy Phelan :: Blacknight Solutions wrote:
> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal 
> {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; 
> font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; 
> text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed 
> {color:purple; text-decoration:underline;} span.EmailStyle17 
> {mso-style-type:personal-compose; font-family:Arial; 
> color:windowtext;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 
> 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} -->
>
> Hi All
>
> We are using tomcat 5 on a shared hosting server. The server is 
> running DirectAdmin as its control panel. It is running RedHat 
> Enterprise 4, tomcat 5.5.23 and jvm 1.5.0_08-b03
>
> I have attached a stack trace (from kill -3)
>
> We are using a plugin from da-plugin.com to use tomcat in DirectAdmin, 
> but the support on this is less than stellar, and we don’t believe it 
> to be the issue
>
> What seems to be happening is that every now and again the java 
> process jumps to 100% usage, and sticks. Only a service tomcatd 
> restart will kill it and restart the server
>
> Tomcat 5 has the following variables enables in its process
>
> -Xmx512M 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties 
> -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath 
> :/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/commons-logging-api.jar 
> -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat 
> -Djava.io.tmpdir=/usr/local/tomcat/temp 
> org.apache.catalina.startup.Bootstrap start
>
> We are also running tomcat-4 in tandem with tomcat 5, it runs with the 
> following variables
>
> -Djava.endorsed.dirs=/usr/local/tomcat.4.1.33/common/endorsed 
> -classpath 
> /usr/local/java/lib/tools.jar:/usr/local/tomcat.4.1.33/bin/bootstrap.jar 
> -Dcatalina.base=/usr/local/tomcat.4.1.33 
> -Dcatalina.home=/usr/local/tomcat.4.1.33 
> -Djava.io.tmpdir=/usr/local/tomcat.4.1.33/temp 
> org.apache.catalina.startup.Bootstrap start
>
> We have been trying to sort this out for a while, but cant see 
> anything, can anyone else?
>
> Jimmy
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

-- 
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)