- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to find top process and identify the PID.
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
01-11-2012 09:06 AM
01-11-2012 09:06 AM
Need to find top process and identify the PID.
Hi All,
OS :- ptmsap> uname -a
HP-UX tbx4 B.11.11 U 9000/800 3251073457
I need to find out the top process consuming CPU and memory. I am using following command to find the top consuming process, but it's failing for some reason. I am using this command referred in one of the oracle book.
also, I would also appriciate , if you could describe each parameter passing to whole command.
ps -e pcpu,pid,user,tty,args | sort -n -k 1 -r | head
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2012 11:04 AM
01-11-2012 11:04 AM
Re: Need to find top process and identify the PID.
>I am using following command to find the top consuming process, but it's failing for some reason. I am using this command referred in one of the oracle book.
This isn't valid for HP-UX, or there are a few things missing:
UNIX95=EXTENDED_PS ps -e -opcpu,pid,user,tty,args | sort -n -r -k1,1 | head
UNIX95= enables -o; -e every PID; -o only those fields
sort: -n numeric, -r reverse, -k key 1
- Tags:
- EXTENDED_PS
- PS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2012 06:56 AM
01-13-2012 06:56 AM
Re: Need to find top process and identify the PID.
Dannies, thank for offering your inputs on this. I was thinking of if that command is not suitable for HPUX , how could I able to see top process on machine consuming the highest cpu cycles ? would also appreciate, along with the command , you describe each and every flag. Thanks once again for your inputs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2012 03:40 PM
01-13-2012 03:40 PM
Re: Need to find top process and identify the PID.
> thinking of if that command is not suitable for HP-UX
My corrected version works in a real shell.