- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to check cpu and memory utilization for ea...
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
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
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
03-02-2012 12:44 AM
03-02-2012 12:44 AM
how to check cpu and memory utilization for each command
how to check the cpu and memory utilization for each command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2012 08:08 AM
03-02-2012 08:08 AM
Re: how to check CPU and memory utilization for each command
For which commands? Normal commands or user applications?
You could use glance or caliper.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2012 08:52 AM
03-02-2012 08:52 AM
Re: how to check cpu and memory utilization for each command
Using standard HP-UX commands, about all you can find is core image of the process. To list the top 10 processes sorted by core image size, enter these command exactly as shown:
UNIX95=on ps -eo vsz,args | sort -rnk1 | head | cut -c1-$COLUMNS (sorted by memory usage in KBytes) UNIX95=on ps -eo pcpu,time,args | sort -rnk1 | head | cut -c1-$COLUMNS (sorted by current CPU percentage used followed by accumulated CPU time) UNIX95=on ps -eo time,pcpu,args | sort -rnk1 | head | cut -c1-$COLUMNS (sorted by accumulated CPU time followed by current percentage of CPU)
The ps command cannot show you shared memory usage (if a program uses it).
Bill Hassell, sysadmin
- Tags:
- PS