Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

System and Process + Kernel CPU usage estimates stuck at 100

Moderators: Vladimir Kondratyev, Anton Katilin

System and Process + Kernel CPU usage estimates stuck at 100

Postby johnmuller71 » Tue Dec 01, 2020 6:02 pm

We are running YourKit 2020.9 and remote profiling a Java application hosted inside a Linux Docker container. Checking /proc/stat and top shows that our CPU has idle time, and is usually sitting at around 60-70% usage.

We used the guide https://www.yourkit.com/docs/java/help/docker.jsp to setup our Dockerfile and have no special options enabled, everything default.

When attached to the remote agent, it shows constant 100% CPU usage. System is at 100% and Process + Kernel is at 100% always for the entire duration of the session.

Image

This is definitely incorrect, is there any way to fix this or improve the accuracy of the estimate?

Thanks.
johnmuller71
 
Posts: 1
Joined: Tue Dec 01, 2020 5:52 pm

Re: System and Process + Kernel CPU usage estimates stuck at

Postby Anton Katilin » Wed Dec 02, 2020 9:03 am

Hello,

It's a new issue.

What processor count is shown in the "Summary" tab, in the "Operating System" section?
Does it match the actual number?

Could you please send to [email protected] the following:
- the profiler agent log file <user home>/.yjp/log/<session name>-<pid>.log
- a performance snapshot file demonstrating the problem
- "uname -a" output of the host
- "uname -a" inside the container.
Anton Katilin
 
Posts: 6064
Joined: Wed Aug 11, 2004 8:37 am

Re: System and Process + Kernel CPU usage estimates stuck at

Postby Anton Katilin » Fri Dec 04, 2020 9:15 am

Update:

The problem was caused by using particular OpenJDK version which incorrectly reported the processor count.

The problem was solved by using another OpenJDK version (namely, from https://hub.docker.com/r/adoptopenjdk/openjdk8).
Anton Katilin
 
Posts: 6064
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

cron

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.