- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TOP CPU Processes
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-11-2008 03:12 AM
тАО10-11-2008 03:12 AM
TOP CPU Processes
Our system is running under HP-UX11.23 with 48 Active CPUs. Normally, it is only at 20-25% utilization. Our operations noticed that it shoots up to 100%. But unfortunately, they were not able to capture the top process during shoots up.
Help me please on how to get that "particular" process/es....
My first action is via measureware...
Any other suggestions?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2008 03:27 AM
тАО10-11-2008 03:27 AM
Re: TOP CPU Processes
top -f top.out -n 8 -d 20
This appends to top.out the top 8, does it 20 times with a delay of 5 seconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2008 03:52 AM
тАО10-11-2008 03:52 AM
Re: TOP CPU Processes
Use the following mentioned command to find the top 10 memory and cpu eater process
UNIX95= ps -ef -o pid,ppid,pcpu,sz,args | sort -nbk 4 | tail -10
or
top -f /home/monitor/top.log
It will create top.log file.
cat /home/monitor/top.log | grep USER | grep LOAD
Thanks,
V.Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2008 03:57 AM
тАО10-11-2008 03:57 AM
Re: TOP CPU Processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2008 04:21 PM
тАО10-11-2008 04:21 PM
Re: TOP CPU Processes
You have to continually run top or ps and save the results.
>rajv: cat /home/monitor/top.log | grep USER | grep LOAD
No need to use cat with grep:
grep USER /home/monitor/top.log | grep LOAD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2008 08:47 PM
тАО10-11-2008 08:47 PM
Re: TOP CPU Processes
As suggested, you need to run the above solutions continuously by running them in a continuous loop - like while loop through a script.
Also as per your initial inclination to use measureware - you use the extract tool to get the detailed report to get the details on CPU intensive processes.
Other things to look would be to see if
1. There is any particular pattern or time of the day etc., is it happening daily/weekly??
2. There are any jobs shceduled through cron or through any Enterprise scheduling tool (if you are using any).
3. Are there any maintenance/cleanup jobs scheduled at that time (Some common mistakes while writing cleanup scripts is to use -exec with the find option to delete old files. This causes a very very large number of rm commands to be spawned for the deletion of files - this causes a lot of context switching. Instead pipe the output of find command (without the -exec)to xargs
(e.g. find $DIR -type f -mtime +30 | xrags rm -f)
4. Check the CPU usage pattern in terms of how much percentage is used by User, by System, by WIO - this will also give you a hint on where the CPU power is been used/wasted.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2008 10:10 PM
тАО10-11-2008 10:10 PM
Re: TOP CPU Processes
you can add the command state by RAJV above in cron schedule. for every 15-20 minutes interval and redirect the output in a file.
or you can redirect the output through mail.
it will eb easier to find out if you don't have measureware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2008 10:17 PM
тАО10-11-2008 10:17 PM
Re: TOP CPU Processes
>find $DIR -type f -mtime +30 | xargs rm -f
No need to use xargs, just -exec ... +
find $DIR -type f -mtime +30 -exec rm -f +
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2008 04:54 PM
тАО10-12-2008 04:54 PM