1828961 Members
2347 Online
109986 Solutions
New Discussion

Process showing High CPU

 
Adam Stahl
Frequent Advisor

Process showing High CPU

Hello,

I am trying to find out of one of my processes is indeed consuming most of the CPU in my box. I have attached the output of top and the process "stcregd.exe" appears to be consuming a lot of CPU time, but I am not totally sure how %WCPU and %CPU is calculated. I've read the man pages, but that doesnt really make it clear to me. Even the way top displays memory is confusing to me. I am much more familier with linux. Can someone tell me if process "stcregd.exe" is really consuming a lot of CPU. And if so, what can I do about it?
12 REPLIES 12
Juan M Leon
Trusted Contributor

Re: Process showing High CPU

Adam,

If you have lsof or tusc, this tools will help you to find what is causing this process to have a high cpu utilization
lsof -p 1727

Remember this process is holding 1 cpu, you have another 3 cpus more running.

Hope it helps.
Adam Stahl
Frequent Advisor

Re: Process showing High CPU

Juan,

Neither of those tools are installed. I do see that the process is holding 1 cpu, but it does change which cpu. For instance it may use cpu 1 for a while, then use cpu 3, and so on. Right now all 4 of my cpu's are at 0.0% IDLE, which is bad.
Juan M Leon
Trusted Contributor

Re: Process showing High CPU

You can get lsof for free from : http://hpux.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=lsof and the installation does not require reboot.

The only dependency to install lsof is make http://hpux.cs.utah.edu/hppd/hpux/Gnu/make-3.81/ this software does not require a reboot.

lsof will definatelly help you to find out what is the problem.

good luck
Adam Stahl
Frequent Advisor

Re: Process showing High CPU

I've attached the output of vmstat. It is showing a high number of system calls (sy) and a high CPU context switch rate (cs). Also I'm wondering if the server has enough memory?
Juan M Leon
Trusted Contributor

Re: Process showing High CPU

can you do swapinfo -tam
Adam Stahl
Frequent Advisor

Re: Process showing High CPU

I've attached the output of swapinfo -tam. I also put the output of "lsof -p 1727" in the attached file.
Dennis Handly
Acclaimed Contributor

Re: Process showing High CPU

It would be helpful to use ps(1) to get the hierarchical output:
$ UNIX95= ps -Hfu egate

You seem to have related PIDs taking up time.
Adam Stahl
Frequent Advisor

Re: Process showing High CPU

# ps -Hfu egate
ps: illegal option -- H
usage: ps [-edaflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup]


Andrew Merritt_2
Honored Contributor

Re: Process showing High CPU

Adam,
You need to try it as it was given, with the 'UNIX95= ' on the front.

Andrew
Adam Stahl
Frequent Advisor

Re: Process showing High CPU

Now my replies are not showing up.
Adam Stahl
Frequent Advisor

Re: Process showing High CPU

# UNIX95= ps -Hfu egate
UID PID PPID C STIME TTY TIME CMD
egate 5687 5686 0 08:00:50 pts/te 00:00 -ksh
egate 1727 1 0 Jul 30 ? 4-07:12:21 /egateprod/egate/server/bin/stcregd.exe -ss -lnegate1 -nu -b
egate 1735 1 247 Jul 30 ? 02:58:41 /egateprod/egate/client/bin/stccb.exe -ln egate1_cb -rh egat
egate 1798 1735 1 Jul 30 ? 34:13 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1900 1735 1 Jul 30 ? 12:26:07 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1803 1735 0 Jul 30 ? 01:16:03 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1739 1735 0 Jul 30 ? 13:23:22 /egateprod/egate/client/bin/stciqmgrd.exe -rh egate1 -rs RHS
egate 1738 1735 0 Jul 30 ? 11:12:07 /egateprod/egate/client/bin/stciqmgrd.exe -rh egate1 -rs RHS
egate 1740 1735 0 Jul 30 ? 02:14:23 /egateprod/egate/client/bin/stciqmgrd.exe -rh egate1 -rs RHS
egate 1793 1735 0 Jul 30 ? 13:08:46 /egateprod/egate/client/bin/stciqmgrd.exe -rh egate1 -rs RHS
egate 1796 1735 0 Jul 30 ? 44:36 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1799 1735 0 Jul 30 ? 04:35 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1802 1735 0 Jul 30 ? 52:12 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1741 1735 0 Jul 30 ? 01:00:53 /egateprod/egate/client/bin/stciqmgrd.exe -rh egate1 -rs RHS
egate 1794 1735 0 Jul 30 ? 25:58 /egateprod/egate/client/bin/stciqmgrd.exe -rh egate1 -rs RHS
egate 1795 1735 0 Jul 30 ? 07:54:26 /egateprod/egate/client/bin/stciqmgrd.exe -rh egate1 -rs RHS
egate 1804 1735 4 Jul 30 ? 01:05:08 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1805 1735 0 Jul 30 ? 30:00 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1806 1735 0 Jul 30 ? 03:22:03 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1807 1735 0 Jul 30 ? 38:48 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1808 1735 0 Jul 30 ? 34:54 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1809 1735 0 Jul 30 ? 35:07 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1811 1735 0 Jul 30 ? 01:00:21 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1812 1735 3 Jul 30 ? 02:53:13 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1817 1735 2 Jul 30 ? 04:04:20 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1818 1735 0 Jul 30 ? 31:33 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1819 1735 3 Jul 30 ? 46:44 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1823 1735 0 Jul 30 ? 02:12:46 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1822 1735 0 Jul 30 ? 01:29:42 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1824 1735 0 Jul 30 ? 21:37 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 18754 1735 0 19:04:23 ? 12:52 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1826 1735 0 Jul 30 ? 01:04:47 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1827 1735 0 Jul 30 ? 39:03 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1828 1735 0 Jul 30 ? 38:49 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1829 1735 0 Jul 30 ? 01:06:28 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1834 1735 0 Jul 30 ? 06:18 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1835 1735 0 Jul 30 ? 58:52 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1836 1735 0 Jul 30 ? 13:26 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1838 1735 1 Jul 30 ? 01:41:09 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1839 1735 0 Jul 30 ? 51:13 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1840 1735 0 Jul 30 ? 31:53 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1841 1735 0 Jul 30 ? 01:56:41 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1842 1735 0 Jul 30 ? 01:14:57 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1843 1735 0 Jul 30 ? 01:43:21 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1844 1735 0 Jul 30 ? 50:34 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1845 1735 0 Jul 30 ? 01:06:26 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1846 1735 0 Jul 30 ? 02:06:01 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1847 1735 0 Jul 30 ? 45:50 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1901 1735 1 Jul 30 ? 02:05:23 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1892 1735 57 Jul 30 ? 53:02 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1903 1735 0 Jul 30 ? 03:22 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1893 1735 0 Jul 30 ? 53:51 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1910 1735 0 Jul 30 ? 48:07 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1909 1735 125 Jul 30 ? 39:44 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1908 1735 0 Jul 30 ? 34:58 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1904 1735 0 Jul 30 ? 46:11 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1920 1735 0 Jul 30 ? 01:18:27 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1906 1735 0 Jul 30 ? 01:23:23 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1912 1735 0 Jul 30 ? 42:47 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1980 1735 0 Jul 30 ? 03:32:29 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1907 1735 0 Jul 30 ? 08:01 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1918 1735 0 Jul 30 ? 32:31 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1899 1735 0 Jul 30 ? 33:20 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1917 1735 0 Jul 30 ? 47:51 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1894 1735 1 Jul 30 ? 37:36 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1919 1735 0 Jul 30 ? 35:58 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1921 1735 0 Jul 30 ? 48:37 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1922 1735 0 Jul 30 ? 03:17:44 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1923 1735 0 Jul 30 ? 01:04:09 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1926 1735 1 Jul 30 ? 05:22:01 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1925 1735 0 Jul 30 ? 02:23:22 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1932 1735 0 Jul 30 ? 06:43 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1936 1735 2 Jul 30 ? 01:22:45 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1934 1735 0 Jul 30 ? 10:30 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1935 1735 0 Jul 30 ? 35:40 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1937 1735 0 Jul 30 ? 10:23 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1938 1735 10 Jul 30 ? 37:07 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1939 1735 0 Jul 30 ? 01:16:04 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1940 1735 0 Jul 30 ? 16:31 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1963 1735 0 Jul 30 ? 01:10:22 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1942 1735 0 Jul 30 ? 28:58 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1943 1735 0 Jul 30 ? 16:18 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1964 1735 0 Jul 30 ? 01:10:43 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1967 1735 0 Jul 30 ? 01:01:04 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1965 1735 0 Jul 30 ? 01:30:58 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 28829 1735 0 02:30:09 ? 09:02 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1970 1735 1 Jul 30 ? 01:56:03 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1971 1735 0 Jul 30 ? 35:40 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1972 1735 0 Jul 30 ? 38:22 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1974 1735 0 Jul 30 ? 54:11 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1973 1735 0 Jul 30 ? 36:04 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1979 1735 6 Jul 30 ? 55:46 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1981 1735 1 Jul 30 ? 01:51:28 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1982 1735 0 Jul 30 ? 01:58:37 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1983 1735 0 Jul 30 ? 09:51 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 1984 1735 0 Jul 30 ? 03:38:48 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 1986 1735 0 Jul 30 ? 01:10:37 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 2039 1735 0 Jul 30 ? 32:49 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 2040 1735 0 Jul 30 ? 34:54 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 2097 1735 2 Jul 30 ? 02:04:30 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 18800 1735 0 19:05:05 ? 00:39 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 18846 1735 0 19:06:25 ? 00:55 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 19071 1735 1 19:15:54 ? 05:40 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 18727 1735 0 19:03:04 ? 01:03 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 2260 1735 0 05:00:04 ? 03:56 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
egate 18698 1735 0 19:02:24 ? 00:30 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 18684 1735 0 19:01:39 ? 00:34 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 18740 1735 0 19:03:44 ? 00:32 /egateprod/egate/client/bin/stcewgenericmonk.exe -rh egate1
egate 5761 1735 0 Aug 1 ? 17:35 /egateprod/egate/client/bin/stcdgwtcpiphl7.exe -rh egate1 -r
Dennis Handly
Acclaimed Contributor

Re: Process showing High CPU

# UNIX95= ps -Hfu egate

Please attach a file. The whole purpose of the -H is to have indentation which is lost unless you click "Retain format"