Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6785073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:04:48+00:00 2026-05-26T17:04:48+00:00

is there a command on HP-UX to check and view all the threads related

  • 0

is there a command on HP-UX to check and view all the threads related to a process/task.

ps -m isn’t supported.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:04:49+00:00Added an answer on May 26, 2026 at 5:04 pm

    You can display a stack trace of the threads belonging to a particular process using pstack. It will also give you the LWPID (thread ID). For example:

    $ whereis pstack
    pstack: /usr/ccs/bin/pstack /usr/share/man/man1.Z/pstack.1
    
    $ ps -ef|grep snmpAgt|grep -v grep
       utest 27447     1  0  Aug 26  ?        1544:45 /opt/java6/bin/IA64N/java -DsnmpAgtCfg=./etc/snmpAgt.cfg -Duser.timezone=GMT+8 com.hp.snmpagt.main.SnmpAgtMain
    
    $ pstack 27447|head -30           
    27447:  /opt/java6/bin/IA64N/java
    
    --------------------------------  lwpid : 5549697   -------------------------------
    
     0: 60000000c0380670 : _nanosleep_sys() + 0x30 (/usr/lib/hpux32/libc.so.1)
     1: 60000000c038f360 : nanosleep() + 0xa0 (/usr/lib/hpux32/libc.so.1)
     2: 60000000c89c4ac0 : _Z8os_sleepxb() + 0xa90 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
     3: 60000000c89d5140 : _ZN2os5sleepEP6Threadxb() + 0x200 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
     4: 60000000c83b51a0 : JVM_Sleep() + 0x340 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
     5: 2000000073400ed0 : (unknown) () (unknown)
    
    --------------------------------  lwpid : 5549698   -------------------------------
    
     0: 60000000c0379e50 : __ksleep() + 0x30 (/usr/lib/hpux32/libc.so.1)
     1: 60000000c013aa10 : __mxn_sleep() + 0xaf0 (/usr/lib/hpux32/libpthread.so.1)
     2: 60000000c00d1f50 : pthread_cond_wait() + 0xdd0 (/usr/lib/hpux32/libpthread.so.1)
     3: 60000000c00d1210 : pthread_cond_wait() + 0x90 (/usr/lib/hpux32/libpthread.so.1)
     4: 60000000c89c1880 : _Z13thread_helperPv() + 0x3b0 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
     5: 60000000c00e2060 : __pthread_bound_body() + 0x170 (/usr/lib/hpux32/libpthread.so.1)
    
    --------------------------------  lwpid : 5549699   -------------------------------
    
     0: 60000000c0379e50 : __ksleep() + 0x30 (/usr/lib/hpux32/libc.so.1)
     1: 60000000c013aa10 : __mxn_sleep() + 0xaf0 (/usr/lib/hpux32/libpthread.so.1)
     2: 60000000c00d1f50 : pthread_cond_wait() + 0xdd0 (/usr/lib/hpux32/libpthread.so.1)
     3: 60000000c00d1210 : pthread_cond_wait() + 0x90 (/usr/lib/hpux32/libpthread.so.1)
     4: 60000000c89e2bb0 : _ZN2os13PlatformEvent4parkEv() + 0x330 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
     5: 60000000c8947df0 : _ZN7Monitor5IWaitEP6Threadx() + 0x1a0 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
     6: 60000000c8948c30 : _ZN7Monitor4waitEblb() + 0x2b0 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
     7: 60000000c80ab6c0 : _ZN13GCTaskManager8get_taskEj() + 0xa0 (/opt/java6/jre/lib/IA64N/server/libjvm.so)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway to check if a window.history.go command is successful in changing the
Is there any command available for generating all missing spec files for existing models
Is there a command in MATLAB that allows me to find all NaN (Not-a-Number)
Is there a command to create a Schedule task folder in Windows 2008? I
Is there a command to check how much room MySql has left?
Is there a command that would allow me to check if the string xyz
Does anyone know the command to check if there is an un-committed transaction in
Is there a git command to check which developer pushed the most code for
Is there any command to check the active (since the machine can have more
Is there any command which can check any processes holding a file in Linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.