Results 1 to 9 of 9
  1. #1

    VPS problem. Apache?

    Hello,

    I have some problem. I have one site on my vps.
    - I dont use php scripts.
    - Only clean and optimized html/css with small images.
    - The most active page has around 20-25kb with images. Whole site has around 130kb.

    When my website has around 2000 peoples online site is not available for others.

    Load average with 2000people is around:
    Load Average 0.05, 0.05, 0.05
    CPU 0.00% up to 0.05%
    Memory 260MB from 4gb.

    My cpu:
    GenuineIntel, Intel(R) Xeon(R)CPU E5504 @ 2.00GHz
    4gb of ram.
    Plesk 9.3.0

    Apache settings:
    Timeout 120
    KeepAlive Off
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15

    <IfModule prefork.c>
    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    ServerLimit 256
    MaxClients 256
    MaxRequestsPerChild 4000
    </IfModule>

    <IfModule worker.c>
    StartServers 2
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    </IfModule>


    EDIT:
    In var/log/httpd/access_log and acces_log1 i vae around 9000 errors:
    ::1 - - [18/Apr/2010:00:58:37 +0300] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"



    Could somebody tell what could be wrong with my vps?

    Thanks
    Last edited by imtheboss; 04-20-2010 at 09:45 AM.

  2. #2
    It is very difficult to track down the exact problem by just looking at those figures, however, what I feel is Apache is reaching the "MaxClients" limit. Try increasing MaxClients and ServerLimit to say 500 and restart the httpd service.

    BTW, you can search MaxClients in the Apache error logs to see if it is really the root cause of the problem.

    grep MaxClients /var/log/httpd/error_log
    | LinuxHostingSupport.net
    | Server Setup | Security | Optimization | Troubleshooting | Server Migration
    | Monthly and Task basis services.
    | MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  3. #3
    My Error Log:
    /var/log/httpd/error_log:[Sun Apr 18 21:53:58 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
    /var/log/httpd/error_log:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log: lowering MaxClients to 10. To increase, please see th e ServerLimit
    /var/log/httpd/error_log:[Mon Apr 19 22:14:09 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
    /var/log/httpd/error_log:[Mon Apr 19 22:22:11 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
    /var/log/httpd/error_log:[Mon Apr 19 22:42:07 2010] [error] server reached MaxCl ients setting, consider raising the MaxClients setting
    /var/log/httpd/error_log.1:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log.1: lowering MaxClients to 10. To increase, please see the ServerLimit
    /var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
    /var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
    /var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
    /var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
    /var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit
    /var/log/httpd/error_log.2:[Sat Apr 10 23:21:55 2010] [error] server reached Max Clients setting, consider raising the MaxClients setting
    /var/log/httpd/error_log.2:[Sun Apr 11 00:09:48 2010] [error] server reached Max Clients setting, consider raising the MaxClients setting
    /var/log/httpd/error_log.2:WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers,
    /var/log/httpd/error_log.2: lowering MaxClients to 10. To increase, please see the ServerLimit

    I have increased now MaxClients and ServerLimits to 500. I will check today how it will work with more than 2000 peoples online.

    Thanks for reply.

  4. #4
    Join Date
    Nov 2004
    Location
    India
    Posts
    1,101
    Increasing the MaxClients/ServerLimit is the only option here.
    AssistanZ - Beyond Boundaries...
    Cloudstack Consultancy / 24x7 Web Hosting Support / 24x7 Server Management / Infrastructure Management Services
    Web & Mobile Apps Development / Web Designing Services / Php, Grails, Java Development

  5. #5
    Is there any limit of MaxClients/ServerLimit or i can increase if cpu/memory/server load is still low?

  6. #6
    You can increase it... however a value of around 2000 should be ideal in case of your server but again, no figures can be accurate unless the server is checked thoroughly during the peak hours.
    | LinuxHostingSupport.net
    | Server Setup | Security | Optimization | Troubleshooting | Server Migration
    | Monthly and Task basis services.
    | MSN : madaboutlinux[at]hotmail.com | Skype : madaboutlinux

  7. #7
    Ok. Thanks for answers.

    Topic can be closed.

  8. #8
    Quote Originally Posted by imtheboss View Post
    Ok. Thanks for answers.

    Topic can be closed.
    EDIT: Not Yet.

    I do that what you guys said but i have this problem again when i have around 2000 peoples ;/

    [Tue Apr 20 18:49:43 2010] [error] server reached MaxClients setting, consider r aising the MaxClients setting
    [Tue Apr 20 19:45:15 2010] [error] server reached MaxClients setting, consider r aising the MaxClients setting
    [Tue Apr 20 19:49:24 2010] [error] server reached MaxClients setting, consider r aising the MaxClients setting

    Last edited by imtheboss; 04-20-2010 at 12:01 PM.

  9. #9
    Join Date
    Nov 2004
    Location
    India
    Posts
    1,101
    If this load is normal for your sites then you may need to go for a better server and get an expert to configure your apache. If this not normal and something happening recently then some of your site is having bugs/coding errors/DDOS. Also check you have latest version of php softwares running in that site.
    AssistanZ - Beyond Boundaries...
    Cloudstack Consultancy / 24x7 Web Hosting Support / 24x7 Server Management / Infrastructure Management Services
    Web & Mobile Apps Development / Web Designing Services / Php, Grails, Java Development

  10. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Similar Threads

  1. apache problem VPS
    By etusha in forum Hosting Security and Technology
    Replies: 4
    Last Post: 02-22-2008, 02:01 PM
  2. php problem? Apache problem? Mime? Script can't do upload....
    By galacnet in forum Hosting Security and Technology
    Replies: 7
    Last Post: 05-30-2005, 11:15 AM
  3. problem with permissions being set apache.apache
    By VagrantHost in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 07-29-2004, 01:33 PM
  4. apache problem... switch from cgi to apache module URGENT!
    By needhelpcom in forum Hosting Security and Technology
    Replies: 8
    Last Post: 06-07-2004, 06:53 AM
  5. HELP - Apache problem
    By twrs in forum Dedicated Server
    Replies: 2
    Last Post: 10-10-2003, 02:38 AM

Related Posts from theWHIR.com

Posting Permissions

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