- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: threads
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
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
01-22-2002 12:42 PM
01-22-2002 12:42 PM
threads
two parts.
our system is running an application that uses many multi-threaded processes.
a) How can I get a thread count for the system?
b) is there an easy way to see how many threads each process is using?
TIA
-Rusty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2002 12:50 PM
01-22-2002 12:50 PM
Re: threads
Do you have glance/measureware installed? If not, you can install a trial version, and then determine if that's what you need, then you can purchase it.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2002 01:43 PM
01-22-2002 01:43 PM
Re: threads
I was hoping there was another way besides glance.
-Rusty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2002 05:01 AM
01-23-2002 05:01 AM
Re: threads
touch -t 200008080101 /var/adm/.ao
/opt/perf/bin/gpm &
It works at least with version C.02.40.00.
Ciao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2002 07:23 AM
01-23-2002 07:23 AM
Re: threads
If you have configured q4 you can use this scripts to know the number of threads:
a)Process:
#!/usr/bin/sh
cp /stand/vmunix /tmp/vmunixq4
/usr/contrib/bin/q4pxdb /tmp/vmunixq4 2> /dev/null
/usr/contrib/bin/q4 /tmp/vmunixq4 /dev/mem <<-EOF
load struct proc from proc max nproc
keep p_pid==$1
print p_comm p_pid %d p_livethreads %d p_suspended_threads %d p_cached_threads_count %d
EOF
b)System:
#!/usr/bin/sh
cp /stand/vmunix /tmp/vmunixq4
/usr/contrib/bin/q4pxdb /tmp/vmunixq4
/usr/contrib/bin/q4 /tmp/vmunixq4 /dev/mem <<-EOF
load struct kthread from kthread max nkthread
keep kt_stat != 0
EOF
Best regards.