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: Help interpreting results from server-status
Author
andy_baptiste



Joined: 07 Mar 2012
Posts: 3
Location: GB, Leeds

PostPosted: Mon 04 Jun '12 17:10    Post subject: Help interpreting results from server-status Reply with quote

Hi All,

I'm trying to diagnose a problem with an Apache server that occasionally reaches its maxclients. The server host as given me access to the Apache server-status but I'm not sure what to read into what I'm seeing. The example below is not typical but has occured once or twice where everything is marked 'sending response'. One thing I don't quite get is why other examples of other peoples server-status always seem to have alot more than the ten processes/requests that mine shows. Could that be an issue in itself? The other state that's not uncommom is alot in a 'C' state, should that tell me I need to use KeepAlives?

Any help, or pointers to where I can do some more research would be appreciated.

Very Happy

Andy



Apache Server Status for #*$!#*$!#*$!XX
Server Version: Apache
Server Built: Feb 23 2012 21:16:56

--------------------------------------------------------------------------------

Current Time: Sunday, 27-May-2012 21:33:22 BST
Restart Time: Sunday, 27-May-2012 00:40:58 BST
Parent Server Generation: 1
Server uptime: 20 hours 52 minutes 23 seconds
Total accesses: 281100 - Total Traffic: 3.0 GB
CPU Usage: u9.68 s1.41 cu.01 cs0 - .0148% CPU load
3.74 requests/sec - 42.1 kB/second - 11.3 kB/request
10 requests currently being processed, 0 idle workers
WWWWWWWWWW
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
0-1 48878 0/155/37920 W 1.03 130 0 0.0 3.54 429.60 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET / HTTP/1.1
1-1 48896 0/130/36202 W 0.24 177 0 0.0 1.09 397.37 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET /party-supplies/action/browseCatalogue/catagory/509/?causeR
2-1 48691 0/866/37559 W 2.79 0 0 0.0 9.58 415.32 #*$!#*$!#*$!XX #*$!#*$!#*$!XX POST /controller.php?action=orderExtraCatagory HTTP/1.1
3-1 48445 0/355/33311 W 1.05 215 0 0.0 2.59 364.83 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET /party-supplies/Product-Category/Party-Accessories/browseCa
4-1 48881 0/34/32570 W 0.00 206 0 0.0 0.24 362.66 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET /party-supplies/action/browseCatalogue/catagory/509/?causeR
5-1 48693 0/373/29838 W 0.99 121 0 0.0 2.80 333.87 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET / HTTP/1.1
6-1 48515 0/501/25272 W 1.43 134 0 0.0 6.23 285.11 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET / HTTP/1.1
7-1 48698 0/649/21816 W 2.49 0 0 0.0 7.83 225.30 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET /server-status HTTP/1.1
8-1 48464 0/355/15604 W 1.00 173 0 0.0 3.84 159.99 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET /party-supplies/action/browseCatalogue/catagory/509/?causeR
9-1 48708 0/77/11008 W 0.11 229 0 0.0 0.43 114.45 #*$!#*$!#*$!XX #*$!#*$!#*$!XX GET /party-supplies/Product-Category/Party-Accessories/browseCa



--------------------------------------------------------------------------------
Srv Child Server number - generation
PID OS process ID
Acc Number of accesses this connection / this child / this slot
M Mode of operation
CPU CPU usage, number of seconds
SS Seconds since beginning of most recent request
Req Milliseconds required to process most recent request
Conn Kilobytes transferred this connection
Child Megabytes transferred this child
Slot Total megabytes transferred this slot

--------------------------------------------------------------------------------

mod_fcgid status:
Total FastCGI processes: 0
--------------------------------------------------------------------------------
SSL/TLS Session Cache Status:
cache type: SHMCB, shared memory: 512000 bytes, current sessions: 0
sub-caches: 32, indexes per sub-cache: 133
index usage: 0%, cache usage: 0%
total sessions stored since starting: 3
total sessions expired since starting: 3
total (pre-expiry) sessions scrolled out of the cache: 0
total retrieves since starting: 0 hit, 0 miss
total removes since starting: 0 hit, 0 miss

Any ideas?

I'm wondering why my line of W's and C's and _'s etc is so small, all other examples I've seen are 4 or 5 times bigger?? Question
Back to top
Steffen
Moderator


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

PostPosted: Thu 07 Jun '12 13:41    Post subject: Reply with quote

Running windows ?

Looks like max ThreadsPerChild is 10: 10 requests currently being processed, 0 idle workers

When running 2.4 on windows, set:

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxConnectionsPerChild: maximum number of connections a server process serves
<IfModule mpm_winnt_module>
ThreadsPerChild 150
MaxConnectionsPerChild 0
</IfModule>

Steffen
Back to top
andy_baptiste



Joined: 07 Mar 2012
Posts: 3
Location: GB, Leeds

PostPosted: Thu 07 Jun '12 13:58    Post subject: Reply with quote

Hi Steffen,

It's a Linux server I believe, but if it is currently 10 ThreadsPerChild do you think that's a little low?

Like I say, every other example I have seen online of a server-status has a huge line of dots, underscores, w's etc but mine has just 10.
Back to top


Reply to topic   Topic: Help interpreting results from server-status View previous topic :: View next topic
Post new topic   Forum Index -> Apache