File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat eats a lot of CPU

 
Andrei Antonescu
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am having an app deployed on a Tomcat 6 instance. The webapp is accessed by a lot of users every day. However in some days the CPU is almost at 90% (Tomcat eats a lot of processing power).

Do you have any idea how I can find out what's causing the high CPU consumption?

I have instaled "Probe" profiler & found nothing special.

Thanks in advance
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My first thought for problems like this is to use the Tomcat Management app. It will show you what all the request handling threads are doing and how much time they have been running.

Bill
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17616
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Tomcat" isn't eating a lot of CPU. Tomcat is specifically designed NOT to eat a lot of CPU. If you deploy a Tomcat server with no apps installed and it runs heavy CPU, there's something wrong. Generally involving Virtual Memory thrashing (which is an OS/hardware issue, not Tomcat).

Applications and services installed under Tomcat, however, they're another story...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic