How to see the process threads / lwpid on HP-UX

# pstack <process id>  

# pstack 7604

 

——————————–  lwpid : 7463580   ——————————-

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: 60000000c9d4ba20 : _ZN2os4Hpux5Event4downEv() + 0x100 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
5: 60000000c9d4f650 : _ZN13ObjectMonitor4waitExbP6Thread() + 0x1280 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
6: 60000000c9f02550 : _ZN18ObjectSynchronizer4waitE6HandlexP6Thread() + 0xb0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
7: 60000000c9b8ee40 : JVM_MonitorWait() + 0x230 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
8: 2000000073400940 : (unknown) () (unknown)

——————————–  lwpid : 7476079   ——————————-

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: 60000000c00d43f0 : pthread_cond_timedwait() + 0x130 (/usr/lib/hpux32/libpthread.so.1)
4: 60000000c9d4fd80 : _ZN2os4Hpux5Event4downEx() + 0x2f0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
5: 60000000c9d4ec80 : _ZN13ObjectMonitor4waitExbP6Thread() + 0x8b0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
6: 60000000c9f02550 : _ZN18ObjectSynchronizer4waitE6HandlexP6Thread() + 0xb0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
7: 60000000c9b8ee40 : JVM_MonitorWait() + 0x230 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
8: 2000000073400940 : (unknown) () (unknown)

——————————–  lwpid : 7476080   ——————————-

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: 60000000c00d43f0 : pthread_cond_timedwait() + 0x130 (/usr/lib/hpux32/libpthread.so.1)
4: 60000000c9d4fd80 : _ZN2os4Hpux5Event4downEx() + 0x2f0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
5: 60000000c9d4ec80 : _ZN13ObjectMonitor4waitExbP6Thread() + 0x8b0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
6: 60000000c9f02550 : _ZN18ObjectSynchronizer4waitE6HandlexP6Thread() + 0xb0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
7: 60000000c9b8ee40 : JVM_MonitorWait() + 0x230 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
8: 2000000073400940 : (unknown) () (unknown)

——————————–  lwpid : 7476082   ——————————-

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: 60000000c00d43f0 : pthread_cond_timedwait() + 0x130 (/usr/lib/hpux32/libpthread.so.1)
4: 60000000c9d4fd80 : _ZN2os4Hpux5Event4downEx() + 0x2f0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
5: 60000000c9d4ec80 : _ZN13ObjectMonitor4waitExbP6Thread() + 0x8b0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
6: 60000000c9f02550 : _ZN18ObjectSynchronizer4waitE6HandlexP6Thread() + 0xb0 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
7: 60000000c9b8ee40 : JVM_MonitorWait() + 0x230 (/gmac01/oraas/mid/jdk/jre/lib/IA64N/server/libjvm.so)
8: 2000000073400940 : (unknown) () (unknown)

# pstack 7604 |wc -l
331
#

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.