The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help Needed...maxclientscheck has exceeded the MaxClients limit

Discussion in 'General Discussion' started by jacobvar, Mar 15, 2003.

  1. jacobvar

    jacobvar Member

    Joined:
    Mar 14, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cpanel@server145.abc.com
    wrote
    Apache has reached the MaxClients
    limit. cPanel has increased the MaxClients limit to 180 (10 higher).

    You may wish to suspend the user with the largest access log as they
    are generally the person using up all of the avalible connections. However, your should
    have your system admin verify this first.

    Top 3 Largest access logs
    ====================================
    636040 /usr/local/apache/domlogs/abc.com
    34868 /usr/local/apache/domlogs/def.com
    28068 /usr/local/apache/domlogs/abc.com-bytes_log

    ====================================

    Is there antone help me what to do.....If i delete the log files then i won't be able to get the statistics , then will i have to get the probs....out from it.Thanks in advance...

    Hope there is anyone u can really help me out...
     
  2. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Check the Error First

    Hello,

    Read the Error carefully. It says that The MaxClient limit has been reached and it was increased by cPanel. Check httpd.conf and locate MaxClient or whatever.

    There is no need to delete the logs. Cpanel only warns you to check the top 3 access logs. so that u can see that these 3 domains are not using much of your apache.

    That's it. Nothing to worry about. cPanel is Nice.


    Regards,
    :D
     
  3. jacobvar

    jacobvar Member

    Joined:
    Mar 14, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    Thankx.....

    Dear Vishal,
    Thankx a lot for the reply....How can i locate and check httpd.conf and MaxClient.IF the access_log and stats_log is getting bigger and bigger then my server will be down.Is there anything that i can rotate the log files and the get the stats whenever i need the Stats.

    Badly needing the help as my acess_log is above 900 Mb

    Thankx in advance...
     
  4. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello

    Hello,

    The httpd.conf is by default in /etc/httpd/conf. or u can use locate httpd.conf.

    To rotate logs u have a option in WHM see the Server Setup (I suppose) or u'll find something in /scripts directory.

    if your stats, access, error logs are bigger then u need to rotate them and then u can move the old logs somewhere else.

    See server setup in WHM or look into /scripts.

    u manually do the transfer but for that u'll have to stop apache , then rename the access_log and error_log files, touch access_log and error_log with proper permissions .

    but don't go in manually (Recommended).

    Regards,
    :cool:
     
  5. jacobvar

    jacobvar Member

    Joined:
    Mar 14, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    Hi..Vishal...,

    I could not find the option to rotate the log files in WHM server setup and i donno wanna to do it manually as i am less technical person as i want my log files to get rotated and whenever i want to look the stats to should get the stats...

    Hope u will help me out...


    Regards,
    jacsy
     
  6. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Check this

    Hello,

    Check
    man logrotate

    /usr/sbin/logrotate --usage

    Regards,
    :cool:
     
  7. jacobvar

    jacobvar Member

    Joined:
    Mar 14, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    I have gone inside the /usr/sbin/logrotate

    now what to do....
     
  8. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    The error tells you to simply *check* the logs to find the user who has the largest log files. The error suggests this as somebody on your server is mostlikely receiving a great deal of traffic. THus, the error is suggesting that you locate this person by viewing the domain with the largest log files. It is not telling you to rotate the logs. You missed the point totally.

    By the way, my experience tells me that viewing the site with the largest log files is not enough evidence. At shell, run "top" command and watch the results. If you are running ProFTP, you may be receiving a DoS attack. ProFTPd is very prone to DoS.

    Also, check your logs

    vi /var/log/messages

    If you see several FTP connections from a single IP number in a matter of seconds, then you are a victim of a DoS.
     
  9. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Sorry

    Hello,

    I totally agree with bmcpanel. what ever he has mention is totally correct.
    But don't u think he should rotate the logs as they are 900+ in size?

    Regards,
     
Loading...

Share This Page