This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat eats a lot of CPU Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat eats a lot of CPU" Watch "Tomcat eats a lot of CPU" New topic
Author

Tomcat eats a lot of CPU

Andrei Antonescu
Ranch Hand

Joined: Jul 08, 2010
Posts: 75
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Jun 25, 2001
Posts: 15961
    
  19

"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...


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat eats a lot of CPU
 
Similar Threads
Troubleshooting High CPU - Request Threads always in service
Use OptimizeIt for ...
CPU Utilization issue with Websphere 3.5.6
Tomcat 5.0 memory problem
java.exe is eating up cpu performance