1752723 Members
6887 Online
108789 Solutions
New Discussion

Re: CPU Usage is 100%.

 
shikhar_1
Regular Advisor

CPU Usage is 100%.

Hi,

 

I am having issue of high CPU utilization with one of HP-UX server.

I have checked and found one process is consuming max cpu. See the below findings.

 

Glance o/p

 

      UR                 R                                                                                              | 23%   23%   23%
------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                     PROCESS LIST                                                         Users=    1
                         User      CPU %    Thrd Disk        Memory       Block
Process Name     PID     Name   ( 200% max) Cnt  IOrate      RSS/VSS      On
--------------------------------------------------------------------------------
sh                 16535 root         75.0     1   0.0     384kb    476kb   PRI
oracleBTR          24986 oracle9      23.6     1   3.8    28.4mb   30.0mb   new
oracleBTR          24151 oracle9      23.4     1   0.0    30.6mb   33.4mb   PRI
batchman            5237 maestro      20.7     1   5.4     4.3mb    4.9mb   PRI

 

#-> ps -ef | grep -i 16535
    root 16535     1 253  Nov 29  ?        9157:12 -sh
    root 26025 24301  0 17:01:51 pts/1     0:00 grep -i 16535

 

Can i kill that -sh process??

 

Appreciate quick response.

 


 

7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: CPU Usage is 100%.

I think it would be safe to kill

 

It looks like a shell from a session that was terminated incorrectly.

shikhar_1
Regular Advisor

Re: CPU Usage is 100%.

Killed -sh process but still the CPU usage is showing high.

 

CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS
 0    3.71  80.2%   0.0%  19.8%   0.0%   0.0%   0.0%   0.0%   0.0%
 1    3.56  81.9%   0.0%  18.1%   0.0%   0.0%   0.0%   0.0%   0.0%
---   ----  -----  -----  -----  -----  -----  -----  -----  -----
avg   3.64  81.0%   0.0%  19.0%   0.0%   0.0%   0.0%   0.0%   0.0%

Memory: 4916688K (3655204K) real, 7241320K (5816016K) virtual, 4897016K free  Page# 1/6

CPU TTY    PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
 1   ?   25901 root     241 20 24924K  5480K run     13:16 35.23 35.17 bpbkar
 1   ?   25927 root     241 20 24924K  5480K run     12:29 31.19 31.13 bpbkar
 1   ?   25893 root     152 20 25468K  6088K run     11:36 17.89 17.86 bpbkar

 1   ?    1756 oracle9  154 20  1194M  8064K sleep    1:49 12.95 12.93 oracleBTR
 0   ?   22772 oracle9  204 20  1196M  7344K run     58:54 12.06 12.04 oracleBTR
 0   ?    5237 maestro  148 20  7916K  2756K sleep   50:51 10.41 10.39 batchman

Patrick Wallek
Honored Contributor

Re: CPU Usage is 100%.

Well, yes it is.  You now have other process that are using CPU.

 

The 3 bpbkar process are using a combined 83% CPU.  You need to determine if those are valid processes or not and whether or not they can be killed.

 

CPU TTY    PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND
 1   ?   25901 root     241 20 24924K  5480K run     13:16 35.23 35.17 bpbkar
 1   ?   25927 root     241 20 24924K  5480K run     12:29 31.19 31.13 bpbkar
 1   ?   25893 root     152 20 25468K  6088K run     11:36 17.89 17.86 bpbkar

Dennis Handly
Acclaimed Contributor

Re: CPU Usage is 100%.

>but still the CPU usage is showing high.

 

Not much you can do about it except get more CPUs, RAM or a faster machine?

Or schedule your bpbkar processes later?  A similar URL:

http://www.symantec.com/connect/forums/bpbkar-slow-and-taking-100-cpu

 

What does "swapinfo -tam" show?

suvy12
Frequent Advisor

Re: CPU Usage is 100%.

can u check for background processes if any running

Run

 

#fg

shikhar_1
Regular Advisor

Re: CPU Usage is 100%.

#-> swapinfo -tam Mb Mb Mb PCT START/ Mb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 20000 626 19374 3% 0 - 1 /dev/vg00/lvol2 reserve - 4826 -4826 memory 9450 1399 8051 15% total 29450 6851 22599 23% - 0 - [root@brsjp020:/var/spool/sockets/pwgr]#

Dennis Handly
Acclaimed Contributor

Re: CPU Usage is 100%.

(It would help if you could go back and edit your post to make the output readable.)

 

>memory 9450 1399 8051 15%

 

So you have free memory and aren't swapping.