• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Susanne Bethe
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These multiple Tomcat processes you see. Are they all getting CPU time? Are they all the same size?

Bill
 
Susanne Bethe
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Susanne Bethe
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic