- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How many threads belong to this process?
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
04-08-2002 12:26 PM
04-08-2002 12:26 PM
How many threads belong to this process?
I usually use GlancePlus for this, but it isn't installed on all the machines I need to check.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 01:25 PM
04-08-2002 01:25 PM
Re: How many threads belong to this process?
I am not sure if I understood your question correctly..
To look at all the threads for a particular process, you could do a
ps -ef | grep
On Sun's you could use:
ptree
If the threads that you are talking about are java threads then ... do:
ps -ef|grep java|grep
Hope this helps !
-Thanks,
Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 01:39 PM
04-08-2002 01:39 PM
Re: How many threads belong to this process?
May be you want to look at lsof .
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 06:53 AM
04-09-2002 06:53 AM
Re: How many threads belong to this process?
Manoj: I looked as lsof but I couldn't make use of it to see how many threads were in a process.
All: I did get the advice to use gdb to attach to the process and then use "info threads". That works OK if it's OK to pause the process for awhile. In my present case this was enough.
But, how does GlancePlus know the thread id's? I know it is using the MI daemon to read the kernel structures, but I seem to recall some way to querry the kernel structures directly?
--- thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 10:10 AM
04-09-2002 10:10 AM
Re: How many threads belong to this process?
Sorry I misunderstood your question, threads can also mean processes ...
If you are talking about multi-threaded, single-threaded environments, then usually the process that starts these threads logs information in its application logs, the logs can sometime indicate how many threads it has started ...
As you mentioned there must be a way to query the kernel on how many threads that particular process is running ...
Good Luck..
Thanks,
Shabu