CPU load investigation¶
In some cases, it is necessary to investigate which WCS thread loads servers' CPU and how much. To do this:
-
Find WCS core pid with command
or
-
Get the process thread dump with
Here 4240 is WCS pid found on step 1.jstack
The file received as a result of executing this command will look as follows
Here you can get thread names, states and its identifiers in hexadecimal form in 'nid' field -
Execute the command
Here 4240 is WCS pid found on step 1.
The process threads will be displayed to console with their CPU and memory consumption
Threads identifiers in decimal form are in the 'PID' column. The thread can be found by this identifier in file formed on step 2, so the thread name can be defined.