Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat high cpu usage

 
Rich Dominelli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a small tomcat/axis based webservice which slowly grabs more cpu over a few days and requires a restart. CPU utilization climbs to high 90's and would problably hit 100% if I did not restart.

I have seen several threads about this being caused by JDK 1.4.1. but we are on 1.4.2. Our environment is sun solaris and we are running tomcat 5.0.28.

Any suggestions on how to track the cause of this down?

Thanks for your help.
rich
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was my problem I would start by using the methods in java.lang.ThreadGroup to enumerate the active Threads. If you did this in a servlet you would see the state of the response serving Threads.
I once used this to track down a bug in which Threads were created but never run - they just hung around using memory.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic