Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Tomcat Application Server freezes

Moderators: Vladimir Kondratyev, Anton Katilin

Tomcat Application Server freezes

Postby Kuchenwolf » Mon Dec 15, 2014 3:35 pm

Lately, our Tomcat Application Server is having global freezes, during which it can not be accessed at all.
It starts with one second freezes each 5 seconds and gets worse until the freezing phases become longer than the working phases! We had freezes up to 40 seconds. Rarely, it gets better if we let it run long enough, but usually we restart the server.

What's interesting, while our server is freezing up the yourkit thread takes up close to 100% thread utilization, which we have confirmed manually as well (with the threadmxbean.getThreadCpuTime method)

Do you have any advice on what could be causing our problem and how to fix it?

I am attaching a screenshot of what the yourkit profiler is showing when the server freezes up.
The blank spots are when the server is not reacting.
Image
Kuchenwolf
 
Posts: 1
Joined: Mon Dec 15, 2014 3:25 pm

Re: Tomcat Application Server freezes

Postby Anton Katilin » Tue Dec 16, 2014 10:04 am

Hi,

Which version do you use?

Could you please provide a performance snapshot of that application. Please capture it, zip the .snapshot file and send it attached to support@yourkit.com

Also, could you please provide the profiler agent logs from the remote machine at ~/.yjp/log. Please also zip and attach.

Anyway, you have the stack telemetry enabled:
http://www.yourkit.com/docs/java/help/threads.jsp

It may add overhead especially when you have many threads. The EE server integration wizard suggests to disable it in production mode. It offers other settings too to control the overhead.
I would recommend to use the wizard and choose the Production option if you haven't done it yet.
http://www.yourkit.com/docs/java/help/p ... remote.jsp

Best regards,
Anton
Anton Katilin
 
Posts: 5677
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 16 guests

cron