Tomcat 100% CPU utilization

All of a sudden after a deployment of a Dynamic Web Project from eclipse to Tomcat 5.5.17, whenever I would try to run the web project from a browser, tomcat5.exe’s utilization shot up to 100% and stayed there.

I tried restarting the server, deleting the deployed app, and redeploying it, but it just kept happening.

So, in the catilina log, I found this:

INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: F:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;F:\WINDOWS\system32;F:\WINDOWS;F:\WINDOWS\system32;F:\WINDOWS;F:\WINDOWS\System32\Wbem;F:\Program Files\ATI Technologies\ATI.ACE\;F:\Program Files\Common Files\Adobe\AGL\;F:\Program Files\Java\jdk1.5.0_07\bin\;F:\Program Files\Java\jdk1.5.0_07\jre\

This only started appearing after I got the 100% utilization problem. Any ideas as to what it means?

if you have got reply to your question about the Tomcat Native Library location? thanks!

How did you install tomcat? Did you use the windows binary?

Does tomcat run at 100% with all applications (including the default root application that is only documentation)? Or just yours? My guess is that there might be a infinite loop in your application.

Such problems are almost hard to detect and you must be telling when you first run with.

My guess is what about the Classpath? You may instal another jdk or jre and the classpath has changed. In that case the path F:\Program Files\Java\jdk1.5.0_07\bin\ must be added to your classpath instead of the new one.

Hi…

I got a jsf application running on tomcat 5.5.17 (with jdk 1.5_08) installed in a Windows 2003 server… and it runs just fine.

The bizarre situation is when i jump my application to a identical environment except for the machine, which turns to be a MS virtual server… it runs fine for a while but sooner or later it consumes all the cpu resources and freezes the server…

¿what can be the reason ?.. there’s no things such a infinite loop in my application, i’m not a victim for java 1.4 bugs… somebody help me please:confused:

I HAVE PROBLEM IN STARTING TOMCAT 6. ALL CLASS PATH IS CORRECT

DONT KNOW WATS THE PROBLEM, WHEN i GIVE run in startup.bat file.

It showed

C:\>c:\ om6\bin\startup.bat;
Using CATALINA_BASE: C:\ om6\
Using CATALINA_HOME: C:\ om6\
Using CATALINA_TMPDIR: C:\ om6\\ emp
Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_12
Bootstrap: Class loader creation threw exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.tomcat.util.compat.JdkCompat.<clinit>(JdkCompat.java:55)
at org.apache.catalina.loader.StandardClassLoader.<clinit>(StandardClass
Loader.java:207)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Clas
sLoaderFactory.java:189)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.jav
a:160)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
:104)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:193)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:399)
C:\>
[/COLOR][/B]

For some reasons your post got me running Apache Tomcat on Vista after much searching. Google habitually indexing pages that are old, yet relevant, made it appear in a search on “unable to run Tomcat on Vista”.

Bingo - C:\apache-tomcat-6.0.16\bin\startup.bat

  • and everything went OK.

Thanks.