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.

Tens of "Open slot with no current process"

Discussion in 'General Discussion' started by rasheed, Mar 13, 2006.

  1. rasheed

    rasheed Member

    Joined:
    Jul 6, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I found daily that “apache status” giving some session with “Open slot with no current process“ but it’s “SS” for more than 15 hours:

    126-0 - 0/0/3 . 0.16 3937 1351 0.0 0.00 0.32 212.24.224.18 www.twijri.com GET /forum/index.php/clientscript/clientscript/clientscript/cli
    127-0 - 0/0/3 . 0.15 3937 865 0.0 0.00 0.32 212.24.224.18 www.twijri.com GET /forum/index.php/clientscript/clientscript/clientscript/cli
    128-0 - 0/0/3 . 0.18 3937 1168 0.0 0.00 0.32 212.24.224.18 www.twijri.com GET /forum/index.php/clientscript/clientscript/clientscript/cli
    129-0 - 0/0/3 . 0.17 3937 1066 0.0 0.00 0.32 212.24.224.18 www.twijri.com GET /forum/index.php/clientscript/clientscript/clientscript/cli
    130-0 - 0/0/3 . 0.16 3937 1274 0.0 0.00 0.32 212.24.224.18 www.twijri.com GET /forum/index.php/clientscript/clientscript/clientscript/cli
    131-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    132-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    133-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    134-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    135-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    136-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    137-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    138-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    139-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    140-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    141-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    142-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    143-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    144-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    145-0 - 0/0/1 . 0.13 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    146-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    147-0 - 0/0/1 . 0.12 3939 0 0.0 0.00 0.10 212.24.224.18 (unavailable) GET /forum/index.php/clientscript/clientscript/clientscript/cli
    148-0 - 0/0/1 . 0.09 25857 1169 0.0 0.00 0.10 212.24.224.18 www.twijri.com GET /forum/index.php/clientscript/clientscript/clientscript/cli
    149-0 - 0/0/1 . 0.12 25857 1175 0.0 0.00 0.10 212.24.224.18 www.twijri.com GET /forum/index.php/clientscript/clientscript/clientscript/cli

    Rasheed
     
  2. bronto

    bronto Member

    Joined:
    Aug 18, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    This is happening to my server as well. We are having performance issues with our php/MySQL application, and I discovered this while poking around in Web Host Manager.

    Why does this happen? I note that the IP addresses given in my apache status output for the open slots correlate to the http requests made to the server during a period of very heavy load and poor server performance. Are these open slots the cause or the result of a problem?

    I've since restarted apache and the open slots are gone, but will be watching to see if they come back. There were about 60 open slots before the restart.
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Do these processes hang on the same script all the time? This problem can be caused by a malicious script or a "runaway script" which can continuously loop, dragging down the server's resources. If this one of the commonly used scripts such as PhpBB, or Joomla or OsCoomerce, or even a customize script, you'll have to upgrade and/or fix/secure this script.
     
  4. bronto

    bronto Member

    Joined:
    Aug 18, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Postnuke. Done a lot of work with pustnuke, never seen this issue before. Most of the URLs reference images on the file system. I can view these images in a web browser when I enter their addresses as the URL.

    Would these "open slots" significantly affect performance?
     
  5. bronto

    bronto Member

    Joined:
    Aug 18, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    More info. Here are more of them that have appeared in the last few hours since my last post:

    10-0 - 0/0/4 . 0.00 6383 0 0.0 0.00 0.00 207.44.186.107 (unavailable) GET /chat2//chat/messagesL.php3 HTTP/1.1
    11-0 - 0/0/3 . 0.00 6382 0 0.0 0.00 0.00 207.44.186.107 (unavailable) GET /chats//chat/messagesL.php3 HTTP/1.1
    12-0 - 0/0/3 . 0.00 6382 0 0.0 0.00 0.00 207.44.186.107 (unavailable) GET /php/phpmychat//chat/messagesL.php3 HTTP/1.1
    13-0 - 0/0/2 . 0.01 14275 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /phpMyChat//chat/messagesL.php3 HTTP/1.1
    14-0 - 0/0/3 . 0.00 14274 0 0.0 0.00 0.00 207.44.186.107 xxx.xxx.xxx.xxx GET /chat1//chat/messagesL.php3 HTTP/1.1
    15-0 - 0/0/2 . 0.00 14275 0 0.0 0.00 0.01 207.44.186.107 xxx.xxx.xxx.xxx GET /chatroom//chat/messagesL.php3 HTTP/1.1
    16-0 - 0/0/2 . 0.00 14274 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /forums//chat/messagesL.php3 HTTP/1.1
    17-0 - 0/0/1 . 0.00 14275 1 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /forum//chat/messagesL.php3 HTTP/1.1
    18-0 - 0/0/2 . 0.00 14274 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /phpMyChat-0.14.4//chat/messagesL.php3 HTTP/1.1
    19-0 - 0/0/1 . 0.00 14275 1 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /phpMyChat-0.14.3//chat/messagesL.php3 HTTP/1.1
    20-0 - 0/0/2 . 0.01 14275 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /chat3//chat/messagesL.php3 HTTP/1.1
    21-0 - 0/0/1 . 0.00 14275 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /phpMyChat-0.14.4//chat/messagesL.php3 HTTP/1.1
    22-0 - 0/0/1 . 0.01 14274 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /phpMyChat-0.14.2//chat/messagesL.php3 HTTP/1.1
    23-0 - 0/0/2 . 0.00 14275 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /community//chat/messagesL.php3 HTTP/1.1
    24-0 - 0/0/1 . 0.00 14274 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /phpMyChat-0.14.5//chat/messagesL.php3 HTTP/1.1
    25-0 - 0/0/1 . 0.00 14275 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /chat1//chat/messagesL.php3 HTTP/1.1
    26-0 - 0/0/1 . 0.00 14274 0 0.0 0.00 0.000 207.44.186.107 xxx.xxx.xxx.xxx GET /phpMyChat//chat/messagesL.php3 HTTP/1.1

    Note that I have NOT installed these scripts on my server, so there's really nothing to fix because they don't exist. I checked the apache error log, and these files all show up as 404. And it's not simply a 404 issue because I had a lot of image files in the previous batch that weren't 404.
     
    #5 bronto, Oct 11, 2006
    Last edited: Oct 11, 2006
  6. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Why not installing a mod-security rule to stop/minimize these processes?
     
  7. bronto

    bronto Member

    Joined:
    Aug 18, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Most of them are not security issues. They are real files, mostly images, on the server. I posted the above mostly because it shows that the issue is not related to a particular file or script, because the above requests are to files that don't even exist.

    The question remains: "Would these "open slots" significantly affect performance?"
     
  8. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    The "TIME" column in top measures how much CPU time a process uses. The time will only increase when the process is active. Apache starts up 5-15 extra servers/threads that just sit there doing nothing until they receive a connection. Once they are done serving, they go back to sleep. The processes should only remain active for a few seconds, so it will take a long time for the CPU time to increase. The processes may also be killed off and recycled, so you may never see an apache process with more than a few minutes of CPU time.

    A "GET / HTTP/1.1" request is a standard get request for the root directory of your web site. The SS shows how long it has been since the request was initiated, not how long the request is taking to run. I would guess that "Open slot with no current process" means there is child process waiting for someone to connect. This isn't anything to worry about, apache spawns extra child processes before they are needed so there isn't a delay if your site gets hit hard all at once.

    The child processes stay open even when there are no clients. All of the apache child processes share the same memory footprint, so 20 apache children only use slightly more memory than 10 apache children. The SS is just telling you how long ago the *last* request took place, not how long it took to complete the last request. It will stay there until there is a new request, then the timer will reset.

    You will find that apache is very efficient at managing memory resources and child processes, probably much better than any other daemon I can think of. You really don't need to spend a lot of time watching it to make sure it behaves properly. It just works. :)

    Hope this helps!
     
  9. bronto

    bronto Member

    Joined:
    Aug 18, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Yes, I'm a big fan of apache and have not had troubles before. But any program can be misconfigured or acquire a bug. The 60 open slots I listed in my first post were suspicious because of their IP addresses and because they were so old (something I just realized I hadn't mentioned). I first spotted them on Tuesday morning, and they were already almost 4 days old. Seems strange that they'd hang around for so long.
     
Loading...

Share This Page