HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command needed to check the Parent process and ass...
Operating System - HP-UX
1833776
Members
2317
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
07-14-2005 09:55 PM
07-14-2005 09:55 PM
Command needed to check the Parent process and assiciated process.
Hey I have problem to investigate issues related to Process.
My each application starts a java process.There would be around 1000 applications and 1000 java processes.
When one particulat java process stucks its very tedious for me to isolate the java process.
I always use ps -fu | sort -nk2.
and ps -fu |sort -n
Still Iam not happy with these two commands.
Iam looking for command which shows the exactly the parent process first then child.
Just eg:
sar 837 1 0 01:26:02 ? 0:00 /bin/sh ./start fe2ps1_16 http://15.1.26.49:
sar 864 837 0 01:26:03 ? 27:09 /opt/bea/jdk131_08/bin/../bin/PA_RISC2.0/native_threads/java -X
sar 948 1 0 02:20:03 ? 0:00 /bin/sh ./start fe2ps1_34 http://15.1.26.49:7
sar 964 948 0 02:20:04 ? 28:49 /opt/bea/jdk131_08/bin/../bin/PA_RISC2.0/native_threads/java -X
This is how Iam expecting. Please provide the exact command.
~Thanks
Saras
My each application starts a java process.There would be around 1000 applications and 1000 java processes.
When one particulat java process stucks its very tedious for me to isolate the java process.
I always use ps -fu
and ps -fu
Still Iam not happy with these two commands.
Iam looking for command which shows the exactly the parent process first then child.
Just eg:
sar 837 1 0 01:26:02 ? 0:00 /bin/sh ./start fe2ps1_16 http://15.1.26.49:
sar 864 837 0 01:26:03 ? 27:09 /opt/bea/jdk131_08/bin/../bin/PA_RISC2.0/native_threads/java -X
sar 948 1 0 02:20:03 ? 0:00 /bin/sh ./start fe2ps1_34 http://15.1.26.49:7
sar 964 948 0 02:20:04 ? 28:49 /opt/bea/jdk131_08/bin/../bin/PA_RISC2.0/native_threads/java -X
This is how Iam expecting. Please provide the exact command.
~Thanks
Saras
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 11:49 PM
07-14-2005 11:49 PM
Re: Command needed to check the Parent process and assiciated process.
Hi there
Hope this helps - Try the WHOLE of this command and just substitute user_id for your user:
UNIX95= ps -fxH -u user_id -o pid,ppid,cpu,stime,tty,time,comm | more
This will show the process listing for the user, with child processes listed under each parent process. Additionally, if each child process also has their own process(es), these are also given - the output is tabulated so that you can see the process tree.
Let us know how you get on - Keith
Hope this helps - Try the WHOLE of this command and just substitute user_id for your user:
UNIX95= ps -fxH -u user_id -o pid,ppid,cpu,stime,tty,time,comm | more
This will show the process listing for the user, with child processes listed under each parent process. Additionally, if each child process also has their own process(es), these are also given - the output is tabulated so that you can see the process tree.
Let us know how you get on - Keith
Arse-cover at all costs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 11:51 PM
07-14-2005 11:51 PM
Re: Command needed to check the Parent process and assiciated process.
Saras,
Something like
# UNIX95= ps -efH
# UNIX95=true ps -AH -o user,pid,args
# ps -ef | grep "syslogd" | awk ' { printf "Process id = %s Parent Process id = %s\n", $2, $3 }'
Best regards,
Robert-Jan
Something like
# UNIX95= ps -efH
# UNIX95=true ps -AH -o user,pid,args
# ps -ef | grep "syslogd" | awk ' { printf "Process id = %s Parent Process id = %s\n", $2, $3 }'
Best regards,
Robert-Jan
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP