Author |
|
medben
Joined: 03 Apr 2014 Posts: 4 Location: france
|
Posted: Thu 03 Apr '14 14:26 Post subject: number of clients connected to an apache server |
|
|
Hi ,
I administer an Apache server under unix environment SunOS 5.10,I want to know the number of clients connected to my apache server
Thank's for you help |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 08 Apr '14 11:58 Post subject: |
|
|
What is in your config defined? Do you have a server-status page |
|
Back to top |
|
medben
Joined: 03 Apr 2014 Posts: 4 Location: france
|
Posted: Tue 08 Apr '14 14:54 Post subject: |
|
|
hi
thank you for your answer
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
Server version: Apache/2.2.15 (UNIX)
OS : Solaris 5.10
I'm looking for a command or script that can returns the number of current client connexions in my Apache server whithout enabling apache's mod_status because It will need server restart and since the server is in production I can't do it :s
thank again for your help |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
medben
Joined: 03 Apr 2014 Posts: 4 Location: france
|
Posted: Thu 10 Apr '14 12:14 Post subject: |
|
|
Thank you I'll try it and come back to you |
|
Back to top |
|
medben
Joined: 03 Apr 2014 Posts: 4 Location: france
|
Posted: Thu 10 Apr '14 13:56 Post subject: |
|
|
I'm not good in PERL , I want to know before runnig the script that it doesn't change anything ?? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 11 Apr '14 9:06 Post subject: |
|
|
It looks to me that if you do not run it with --save, --days or --max it will not do anything. If you do use those it will create a database and store info in it for running averages. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 11 Apr '14 17:02 Post subject: |
|
|
medben wrote: | I'm not good in PERL , I want to know before runnig the script that it doesn't change anything ?? |
The script does not change anything
run it
Code: |
sudo ./check_httpd_limits.pl --verbose
|
my result on my test server http://pastebin.com/raw.php?i=PG4DSwTK after a fresh start. |
|
Back to top |
|