ARTIFACTORY: How do I find what is causing high cpu from thread dumps and top command?

Products
Frog_Artifactory
Content Type
User_Guide
AuthorFullName__c
Matthew Wang
articleNumber
000005361
FirstPublishedDate
2022-08-05T06:54:18Z
lastModifiedDate
2025-05-15

ARTIFACTORY: How do I find what is causing high cpu from thread dumps and top command?

There could be cases where you experience high cpu, and need to figure out what is causing the increased utilization. There is a way to figure out what is causing the high CPU from thread dumps, and the output of top (both taken during the high CPU), in which you can take action yourself or open a case with JFrog Support.

To do so, first take a thread dump during the issue. You can take a thread dump as seen in this article. Also during the issue, gather the output of “top -H” or “top -H -p <ArtifactoryPID>” to see top cpu consuming processes. 

The output should look like the below:    

User-added image                   

Take the pid of the top (or top few) cpu consuming processes. With the PID:

First, check if the PID from the top output is in the thread dump as the nid. For example for PID 264969 look for nid=264969. 

In older versions  you may need to Convert the PID into hex. For example, with the PID 264969 you get the hex value of 40b09.

After, in the thread dump, look for the “nid” with the hex or PID value. It should look something like one the below two examples with nid as PID or converted to hex: 

User-added image 

From the above thread dump example, we can determine that this thread related to the pypi or cache-fs is causing the high cpu.

Now, you can take action and workaround the issue by removing the cache-fs and open a support case with JFrog Support to investigate further.