Results 1 to 5 of 5
  1. #1

    server seems busy

    My server has been going down a few times over the past few days.

    I get this notice in my server logs:
    [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 6 idle, and 36 total children


    This is my config:

    Timeout 60
    KeepAlive Off
    MaxKeepAliveRequests 80
    KeepAliveTimeout 3

    StartServers 10
    MinSpareServers 10
    MaxSpareServers 15
    ServerLimit 256
    MaxClients 256
    MaxRequestsPerChild 2000

    It's a dual quad with 6GB ram

    top info:
    top - 23:38:34 up 1:55, 2 users, load average: 0.01, 0.03, 0.06
    Tasks: 248 total, 1 running, 247 sleeping, 0 stopped, 0 zombie
    Cpu(s): 1.8%us, 0.3%sy, 0.0%ni, 97.6%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 6109584k total, 6074020k used, 35564k free, 476520k buffers
    Swap: 2096472k total, 0k used, 2096472k free, 3955352k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    13679 apache 15 0 398m 73m 5196 S 6.3 1.2 0:00.42 httpd
    13840 apache 15 0 398m 73m 5156 S 5.3 1.2 0:00.91 httpd
    13792 apache 15 0 399m 74m 5144 S 3.3 1.2 0:01.02 httpd
    3691 mysql 15 0 323m 40m 5076 S 0.7 0.7 0:36.44 mysqld
    13863 apache 15 0 396m 72m 4052 S 0.7 1.2 0:00.61 httpd



    Any advice, I'm pretty sure it's an apache tuning issue
    Thanks

  2. #2
    Join Date
    Dec 2010
    Posts
    278
    Have you tried "increasing StartServers, or Min/MaxSpareServers" ??

  3. #3
    Yes,

    Increased to :

    StartServers 20
    MinSpareServers 20
    MaxSpareServers 30
    ServerLimit 256
    MaxClients 256
    MaxRequestsPerChild 2000

    Sometimes the server will quit responding (ping) eventhough I have an ssh connection open.
    its ok now though, but I'm afraid it will happen again

    netstat -plan | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
    1 72.233.56.138
    1 87.242.75.74
    4 174.37.159.227
    5 12.129.198.254
    300

  4. #4
    Join Date
    Nov 2003
    Location
    The Netherlands
    Posts
    10
    I don't see how a failing Apache on a dual quad doing absolutely nothing is a 'tuning issue'. What version of Apache is this, on which distribution?

    I would recommend using KeepAlive on, as it allows for Apache to use a single connection for serving multiple requests. I actually believe KeepAlive on is the default. Did you set it to off yourself?

  5. #5
    problem solved, bad script on one of the virtual hosts was causing apache to fail.

    found problem by watching httpd process go to 99% and then doing lsof -p 'pid'

    Thanks

Similar Threads

  1. Server Busy !
    By boxer in forum VPS Hosting
    Replies: 6
    Last Post: 11-14-2008, 07:23 AM
  2. server seems busy
    By MrAdmin in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-28-2007, 07:08 PM
  3. Server too busy
    By hostbox in forum WHT Announcements, Feedback and Questions
    Replies: 11
    Last Post: 03-31-2004, 07:36 PM

Posting Permissions

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