Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In some cases, it is necessary to investigate which WCS thread loads servers' CPU and how much. To do this:

1. Find WCS core pid with command

Code Block
languagebash
themeRDark
ps aux | grep java

or

Code Block
languagebash
themeRDark
top

2. Get the process thread dump with jstack

Code Block
languagebash
themeRDark
jstack 4240 >> 4240.jstack

Here 4240 is WCS pid found on step 1.

The file received as a result of executing this command will be the following

Image Removed

Here you can get thread names, states and its identifiers in hexadecimal form in 'nid' field

3. Execute the command

Code Block
languagebash
themeRDark
top -H -p 4240

Here 4240 is WCS pid found on step 1.

The process threads will be displayed to console with their CPU and memory consumption

Image Removed

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 tread name can be defined.

4. If it is necessary, send to support@flashphoner.com for further investigation

...

Include Page
WCS5EN:CPU load investigation
WCS5EN:CPU load investigation