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.

Apache acts funny and big problem

Discussion in 'EasyApache' started by bjarne, May 10, 2004.

  1. bjarne

    bjarne Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    SSL on APCHE is a mess

    Almost as soon as apache is started I get a cpu that maxes out the cpu (glad we have hypertread P4) and there is a root owned process in top, eting the cpu power.

    Anyway I decided to rebuild apache with no SSL support, and it looks like the problems are gone. As far as the unstable stuff.

    Something is wery wrong with this apache and I do belive it is relatet to ssl and some kernel stuff.

    After doing killall -9 httpd every 5 min for 12 hours apache gave this error: semget: No space left on device and I had to restart the server to get it up agian.

    I conclude that something ssl relatet is the problem, because it helps to recompile with no SSL, now it has been up for more then 8 hours:) and it looks good.
     
    #1 bjarne, May 10, 2004
    Last edited: May 11, 2004
  2. vibz

    vibz Member

    Joined:
    Jan 24, 2005
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi dude!!!

    This is not an issue with ssl. Run the following two commands from the root shell.

    ipcs |grep nobody | awk '{print $2}' >> /root/semget
    for i in `cat /root/semget`; do ipcrm sem $i;done

    Restart your apache.
    Enjoy!!! :)

    Vibz
     
  3. dendis

    dendis Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    thanks have just had the same problem, and fixed by your post :)
     
  4. netlook

    netlook Well-Known Member
    PartnerNOC

    Joined:
    Mar 25, 2004
    Messages:
    335
    Likes Received:
    0
    Trophy Points:
    16
    What's for are those commands?
     
  5. vibz

    vibz Member

    Joined:
    Jan 24, 2005
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    The "commands" is a workaround to clear your shared memory without rebooting. You can find a "segmentation fault, cannot write to device" error inside your apache error_log coz ur shared mem is full. ipcs shows the share memory segments, Semaphore Arrays and message queues. The commands clear this using the "semid"s used by nobody (apache). Dats aaall.

    Vibz
     
  6. amal

    amal Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi Vibz,

    Any idea how to find out, the real cause of that issue? Because it's happening for me everyday... And I have to clear the semaphores owned by nobody everyday... I can write a cron for doing that.. But do you know any way to find out the root cause of the issue and thereby fix it....
     
  7. vibz

    vibz Member

    Joined:
    Jan 24, 2005
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi amal,

    I'm sorry, i dont know. Probably you'll have to escalate this to the cpanel team.

    Regards,
    Vibz
     
  8. brentp

    brentp Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ayr, North Queensland, Australia
    bugzilla.cpanel.net or #cpanel on efnet.

    Use them wisely.

    Regards,
    Brent
     
  9. eagle

    eagle Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Thanks, but I get a syntax error near do and I don't see it. Anyone?
     
Loading...

Share This Page