Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

We want to know how many concurrent users the apache is serving at one time? Can I do it by installing some statistics tools? I tried webalizer but it only shows hourly hits, not the number of users. Or I have to analyze the log using some tools?

share|improve this question
Apache Module mod_status would be the standard tool I think – ollybee Jan 17 '12 at 20:58

migrated from stackoverflow.com Jan 17 '12 at 12:56

1 Answer

You may want to check out Apache Top.

Or you can write your own script from the command line that just check the number of current connections on the port Apache is running on (usually 80), for example:

netstat -plan | grep :80

Or, if you just want the number:

netstat -plan | grep :80 | wc -l

This could ideally be done through a cron (eg, run every minute and check number of connections, average over time, etc).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.