Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the number of current connections

Status
Not open for further replies.

YCL

MIS
Nov 12, 1998
13
HK
Hi all,<br><br>From time to time, we need to restart&nbsp;&nbsp;apache after the config file is changed, but we don't want to shut down apache when there are live connections.<br><br>Is there a way of knowing how many people are connecting to the Apache server at a given time?<br><br>
 
You could enable the &quot;Apache status&quot; directive at the end of httpd.conf.&nbsp;&nbsp;This will let you go to a status URL (and you can specify IP addresses that are allowed to do this) and view the number of current connections.<br><br>However, if you're waiting for there to be zero connections, you could be waiting a while...&nbsp;&nbsp;I would just bite the bullet and do an &quot;apachectl restart&quot; at a time when the system is likely to be at it's least busy.&nbsp;&nbsp;A the worst, people browsing may just have a slightly longer wait for pages, or maybe get a &quot;cannot connect&quot; message in their browser. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top