![]() Step 2: If a Java process consumes high CPU, enter one of these commands in order to find out which thread consumes how much: # ps -C java -L -o pcpu,cpu,nice,state,cputime,pid,tid | sort Here, Java takes 5.9 % but it can consume more CPU such as more than 40%, 100%, 200%, 300%, 400%, and so on. Step 1: Enter the top Linux command in order to determine which process consumes high CPU from the virtual machine (VM).įrom this output, take out the processes which consume more %CPU. ![]() In high CPU utilization cases you generally learn that a Java process utilizes the high CPU from the system. Jstack is explained here in order to get you familiar with steps to troubleshoot high CPU utilization issues because of the Java process. You can also enter a Linux command in order to find the exact path of the Jstack process: # find / -iname jstack The location of the Jstack process in every CPS (previously known as Quantum Policy Suite (QPS)) version is '/usr/java/jdk1.7.0_10/bin/' where 'jdk1.7.0_10' is the version of Java and the version of Java can differ in every system. The Linux command used to obtain the Jstack trace of the Java process is: # jstack Jstack provides the Jstack trace so that engineers and developers can get to know the state of each thread. Jstack has all the details of that Java process, such as threads/applications and the functionality of each thread. Jstack takes a memory dump of a running Java process (in CPS, QNS is a Java process). This document describes Java Stack (Jstack) and how to use it in order to determine the root cause of high CPU utilization in Cisco Policy Suite (CPS). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |