VMware Cloud Community
deeboh
Enthusiast
Enthusiast
Jump to solution

How Process Monitoring Metrics obtained

Hey folks, I am monitoring a process custom to my product. its a java process which makes a jdbc connection to a database. I'm collecting the default metrics plus, Open Descriptor and Threads. My question is about how Hyperic determines what the value for Process Threads are?

or more to the point, what command line equivalent exists to see how many Threads a process is using (unix)? Are those threads to the given OS or threads created by connecting to a database for instance?

thanks,

Deeboh
Reply
0 Kudos
1 Solution

Accepted Solutions
excowboy
Virtuoso
Virtuoso
Jump to solution

Hi Deeboh,

if you do a code search you'll see that Process Threads are determined by SIGAR:

<metric name="Process Threads"
template="sigar:Type=ProcState,Arg=%process.query%:Threads"/>

http://sourceforge.krugle.com/kse/codespaces/EPwnGe

And based on my tests SIGAR does it equivalent to the OS.
To answer your second question:
"ps -eLf" shows how many threads a process is using.

ps -eLf | awk '{print $6 " " $10}' just prints out the number of threads and the command.

Cheers
Mirko

View solution in original post

Reply
0 Kudos
1 Reply
excowboy
Virtuoso
Virtuoso
Jump to solution

Hi Deeboh,

if you do a code search you'll see that Process Threads are determined by SIGAR:

<metric name="Process Threads"
template="sigar:Type=ProcState,Arg=%process.query%:Threads"/>

http://sourceforge.krugle.com/kse/codespaces/EPwnGe

And based on my tests SIGAR does it equivalent to the OS.
To answer your second question:
"ps -eLf" shows how many threads a process is using.

ps -eLf | awk '{print $6 " " $10}' just prints out the number of threads and the command.

Cheers
Mirko
Reply
0 Kudos