We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,018 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

find the number of incoming requests to a apache server

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??

5
Contributors
4
Replies
5 Years
Discussion Span
6 Months Ago
Last Updated
6
Views
laddu
Newbie Poster
9 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

blud
Linux Reject
Moderator
836 posts since Apr 2004
Reputation Points: 154
Solved Threads: 22
Skill Endorsements: 0

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

laddu
Newbie Poster
9 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

username456453
Newbie Poster
1 post since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 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.

cereal
Veteran Poster
1,144 posts since Aug 2007
Reputation Points: 344
Solved Threads: 222
Skill Endorsements: 22

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0821 seconds using 2.94MB