vinothp
vinothp

Reputation: 10059

Tomcat Server using 100% CPU?

I am new in using Tomcat Server. In one of the my web application i am using Tomcat 6.0.33 as a Server, it using 100% CPU. I couldn't find it why. Guys could you sort out this problem,

  1. Why this tomcat using 100%CPU?

  2. How to identify the problems of the above?

  3. How to monitor the tomcat in windows?

Please, it would be more helpful for me..

Thanks in advance

Upvotes: 1

Views: 2814

Answers (1)

Oleg Mikheev
Oleg Mikheev

Reputation: 17444

Tomcat itself doesn't use 100% CPU, it is not designed that way. Most probably it is some application that is deployed on it. To make 100% sure that it's not Tomcat just download its distribution and start it up - I bet you CPU usage will be closer to 0.

To tell which application inside your Tomcat is misbehaving you will need to use profiling tools.

The best one IMO is Oracle's VisualVM. Start it from your JDK bin directory (it is called jvisualvm.exe), then follow the guide at the link. In particular its Profiling section.

Upvotes: 3

Related Questions