1,105,263 Community Members

find the number of incoming requests to a apache server

Member Avatar
laddu
Newbie Poster
9 posts since Nov 2006
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

How to find the number of incoming requests to a apache server and also the maximum number of requests that it can serve? Is it possible to extract this info to use it in a program??

Member Avatar
blud
Linux Reject
706 posts since Apr 2004
Reputation Points: 82 [?]
Q&As Helped to Solve: 41 [?]
Skill Endorsements: 3 [?]
Moderator
 
0
 

The number of currently incomming requests can be found using netstat:
netstat -anp | grep :80

Just read the number where the destination address is your servers ip with the port 80.

To find the maximum number of requests apache can handle just look in the httpd.conf file for the MaxClients directive. There should be some other information regarding child processes and how many clients per process each can hold.

Member Avatar
laddu
Newbie Poster
9 posts since Nov 2006
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thank you for the help, I got the incoming reuests. Is there a way to find the incoming request queue?

username456453
Newbie Poster
1 post since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
0
 

The number of currently incomming requests can be found using netstat:

Bullshit. What you see with netstat is the amount of connections a client has made - modern browsers tend to open up to ten connections at the same time for one single request.

Member Avatar
cereal
Posting Virtuoso
1,710 posts since Aug 2007
Reputation Points: 461 [?]
Q&As Helped to Solve: 345 [?]
Skill Endorsements: 44 [?]
 
0
 

@username456453 the suggestion of blud is correct, on a server platform you can check the incoming connections through netstat command, it's quite different from the desktop platform that you are using in your assertion, and even if opening a page (into a server/desktop environment) loads multiple requests, this will be detected by the netstat command.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: