- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: process occupying 97% of cpu
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 06:03 PM
01-04-2006 06:03 PM
it is showing as -sh invoked by root.Is there any way to find out what is the command used by that process.
regards
Arun
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 06:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 06:15 PM
01-04-2006 06:15 PM
Re: process occupying 97% of cpu
as per top, cpu usage is 97%.
please advice how can I solve this.
I am not sure if I can kill the process.Any other way to find out what is the command used by that process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 06:23 PM
01-04-2006 06:23 PM
Re: process occupying 97% of cpu
On the 'top' command, check the command that using lot of the CPU source.
Example :
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 36 root 152 20 8032K 8032K run 29:04 0.33 0.33 vxfsd
0 ? 2591 root 152 20 252M 58804K run 67:39 0.31 0.30 prm3d
1 ? 3890 root 152 20 15424K 4036K run 1:44 0.18 0.18 rep_serv
1 ? 3891 root 152 20 12856K 2364K run 1:20 0.18 0.18 agdbserv
On the example above, the command that using most of CPU source is vxsfd.
Some of the issue about taken CPU source can be solved by patches. Please let me know which process on your system.
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 06:28 PM
01-04-2006 06:28 PM
Re: process occupying 97% of cpu
I also happended to find one such process some time back in my server, I was also confused about it and finally rebooted the server and it went away.
In my opinion it is a process linked to some session which has got terminated. Killing the process shall finish it but try to do it when nothing (applications) are running if possible. Otherwise reboot will clear it.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 06:31 PM
01-04-2006 06:31 PM
Re: process occupying 97% of cpu
Thaks for youe advice
I found that 'sh' is the process which is taking 97% cpu.and it is in run stage.This process had started on dec 20.please let me know whether I can kill.
regards
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 07:31 PM
01-05-2006 07:31 PM
Re: process occupying 97% of cpu
you should walk the process tree to make sure it not running other process before you kill it
nat 26871 26676 0 Jan 3 pts/ti 0:46 /opt/cognos/ph823d7/bin/quick cc=
nat 26676 26674 0 Jan 3 pts/ti 0:00 -sh
root 26674 1809 0 Jan 3 pts/ti 0:00 telnetd -b /etc/issue
root 1809 1 0 Sep 22 ? 8:17 /usr/sbin/inetd
root 1 0 0 Sep 22 ? 73:56 init
In this example -sh (pid 26676) has a child 26871. You want to make sure the children are not important process. But if it is the -sh taking the time, probably a looper.
In the above example, If you kill -sh (pid 26676) make sure the child also dies
Based on the date you mentioned, and the fact -sh is taking the cpu time, I would kill your "offending" process.
kill -1 first to see if it will die nicely
it probably will not die. than use the more agressive signals.
rory
Rory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 08:08 PM
01-05-2006 08:08 PM
Re: process occupying 97% of cpu
Use "top" command to identify which process is consuming high CPU resource.
Understand you have identified "-sh" process is the culprit. The next thing that you need to do now is to find out what are the children processes that might be still running. Use the following commands to capture the process table:
# export UNIX95=XPG4
# script /tmp/processes.txt
# ps -e -H -o ruser,vsz,sz,pcpu,pid,ppid,state,comm,args
# exit
# more /tmp/processes.txt
After search for the process id of "-sh" from the file "/tmp/processes.txt" (a process hierarchy). Each process is displayed under its parent. Trace the children processes first and kill them if necessary.