Results 1 to 5 of 5

Thread: maxclients

  1. #1

    maxclients

    Anyone know how to check how many connections are being made to a server? Had a problem recently with maxclients exceeding.

    Then httpd just went down. Had to reboot.

    Just want to see how many connections are being made. My research tells me that apache on default allows up to 256.

  2. #2
    /usr/local/bin/apachectl status

    You may raise it if you need more,or turn KeepAlive to be Off,then you can handle more connections.

  3. #3
    Join Date
    Nov 2002
    Location
    WebHostingTalk
    Posts
    8,878
    * Moved to Technical and Security Issues....

    Sirius
    I support the Human Rights Campaign!
    Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.

  4. #4
    Is there any other place the apachectl file could be placed?

  5. #5
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,686
    Quote Originally Posted by Gold1234
    Is there any other place the apachectl file could be placed?
    On a CPanel server, that'd be
    /usr/local/apache/bin/apachectl

    Or, you can simply do a
    Code:
    service httpd status
    which should tell you what you need.

    Now, for more detailed info, take a look at /server-status/ .
    You'll need to enable this manually in httpd.conf (/usr/local/apache/conf/httpd.conf for cpanel or /etc/httpd/conf/httpd.conf for most others). Look for a line like:
    Code:
    #<Location /server-status>
    #    SetHandler server-status
    #    Order deny,allow
    #    Deny from all
    #    Allow from .example.com
    #</Location>
    and change that to something like:
    Example 1: With htaccess authentication (better)
    Code:
    <Location /server-status/>
     SetHandler server-status
    AuthName "Private Access Only"
    AuthType Basic
    AuthUserFile /usr/local/apache/htdocs/.htpasswd
    require valid-user
    </Location>
    or
    Example2: IP based auth (not so good if your Ip changes)
    Code:
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from .example.com
    </Location>
    Then restart apache:
    Code:
    /etc/init.d/httpd restart (for linux servers)
    Then you can simply call up http://ip/server-status/ and that will either pop up the usual password/etc prompt for apache or it'll allow/deny based on your ip, depending on the method you chose.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Always looking for Linux, WHMCS, Support Desk work. PM for details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •