• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic