File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat on Windows 2003 as service - cpu to be working to full capacity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat on Windows 2003 as service - cpu to be working to full capacity" Watch "Tomcat on Windows 2003 as service - cpu to be working to full capacity" New topic
Author

Tomcat on Windows 2003 as service - cpu to be working to full capacity

Susanne Bethe
Greenhorn

Joined: May 29, 2010
Posts: 3
Hi,
after installing apache tomcat as a service on windows 2003 the service starts, but with full cpu capacity! So no web site is working well. In the task list I can see more and more tomcat processes....

When starting Tomcat manually with startup.bat everthing's working fine.

How can this be solved?

Bye
Susanne
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
These multiple Tomcat processes you see. Are they all getting CPU time? Are they all the same size?

Bill

Java Resources at www.wbrogden.com
Susanne Bethe
Greenhorn

Joined: May 29, 2010
Posts: 3
Yes, they are of same size and it looks like all of them are getting cpu time. And there are all the time starting new one
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Suzanne,

You can try making thread dumps of the Tomcat that is using 100% cpu to see where it is at. Here is how to make and analyse thread dumps: http://java-monitor.com/forum/showthread.php?t=317 http://java-monitor.com/forum/showthread.php?t=616

Kees Jan


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Susanne Bethe
Greenhorn

Joined: May 29, 2010
Posts: 3
Oops, it's too hard for me! Three days ago it has been the first time I installed an apache tomcat, and I have no experience about it or java.

So probably I set up the service wrong and I would like to explain what I did:
- after I assured, that Tomcat starts right on my Windows server with the script "startup.bat", I decided to run it as a service.
So I read the documentation http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html and found that the script "service.bat" should install it as a service. But the service didn't start up, it makes an service specific error 0 ...

it's silly:
When writing this answer I did the same as yesterday, and now the script works and the service even works fine. Don't know why, but yesterday it didn't...

So thank you, for spiritual help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat on Windows 2003 as service - cpu to be working to full capacity
 
Similar Threads
Industry standard for max CPU usage
Multiple CPU
How to schedule tomcat at system startup windows
Troubleshooting High CPU - Request Threads always in service
Commons Daemon