logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Monitor Apache used threads
Author
zantoro



Joined: 05 Feb 2009
Posts: 9

PostPosted: Sun 21 Jun '09 20:27    Post subject: Monitor Apache used threads Reply with quote

Hello,
I have an apache running on WAMP.
From the http://httpd.apache.org/docs/2.0/mod/mpm_common.html#threadlimit page I understand that apache assigns a thread to every single user that connects to the website.
At the same time I know that based on the keepalive tag parameters a thread may stay busy a little longer.
Now my question: I would like to know if there is a way, using WMI or anything else to find out how many threads are idle (available) and ready to handle a connection and how many are busy doing something else.

Any help or hint would be appreciated.

P.S.: I tried querying WMI class W32_threads for the ThreadState and ThreadWaitReason but the ThreadState is the same for all of them (which doesn't help me to distinguish between the used thread and the idle ones).

Thanks,
Roberto.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Sun 21 Jun '09 21:01    Post subject: Reply with quote

With WMI, I cannot answer.

When you have ThreadsPerChild 250

In server-status you get e.g.:

4 requests currently being processed, 246 idle workers

I use that info in the Busyworkers Graph at www.land10.nl/apachestatus/


Steffen
Back to top
zantoro



Joined: 05 Feb 2009
Posts: 9

PostPosted: Mon 22 Jun '09 0:45    Post subject: thanks for your answer Reply with quote

Hello,
thanks for your answer. this tool could be the solution to my problem but as far as I can see in the busyworkers.html I can only see the busy workers not the available ones.
How do you obtain the stat you just showed me:
"4 requests currently being processed, 246 idle workers"

Thanks again,
Roberto
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Mon 22 Jun '09 19:19    Post subject: Reply with quote

See: http://httpd.apache.org/docs/2.2/mod/mod_status.html

Steffen
Back to top


Reply to topic   Topic: Monitor Apache used threads View previous topic :: View next topic
Post new topic   Forum Index -> Apache