- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ps options.
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
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
06-11-2002 10:30 AM
06-11-2002 10:30 AM
ps options.
I am using the foll. command to observe my production server.
UNIX95 =ps -eo ruser,pid,args,wchan|sort -rn
to find out the the process with highest memory utilization and also what it is waiting for(wchan). Now the last column has an entry like 840c48. what would that mean?we are having problems with occasional runaway process from the appln. what would be the best way to clean this up. Any suggestions are welcome including some scripts to clean up runaway process.
Thanks
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 10:41 AM
06-11-2002 10:41 AM
Re: ps options.
That value is the address of an event for which the process is sleeping - i.e. the wchan output.
If it's an "-", it's running.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:02 AM
06-11-2002 11:02 AM
Re: ps options.
A better option would be to use the std HP-UX ps as follows:
ps -ae | sort -rn -k 3,3
This sorts, descending, on the 3rd field of the ps -ae output - which is the minutes value of the time field. The cumulative execution time of the process. This should result in the CPU time hogs at the top.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:10 AM
06-11-2002 11:10 AM
Re: ps options.
You are better off getting glance/measureware (buy from HP - but there is a limited trial version - 30 days) to watch your system processes, plus "lsof" doesn't hurt (free):
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:13 AM
06-11-2002 11:13 AM
Re: ps options.
I have lsof. How do i use it for this problem? Please advise.
Thanks
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2002 11:15 AM
06-11-2002 11:15 AM
Re: ps options.
UNIX95= ps -eo time,ruser,pid,args,wchan | sort -rn -k 1,1
This will put time in the first field & sort descending on it - time hogs up top.
HTH,
Jeff