Results 1 to 5 of 5
  1. #1

    Apache hangs frequently

    I have a CentOS webserver which is driving me nuts. Once upon a time, Apache hangs. I cannot even view webpages from localhost, so I know that this is not a network issue. Restarting Apache works, but then it happens again, sometimes after an hour, sometimes after a week.

    Is there any way I could fix this, or at least diagnose what is causing a problem? Someone suggested upgrading to newest kernel, and it fized the problem for about two months, now it's back again. I upgraded Apache as well, still no help.

    I have kernel on CentOS 4.2, and Apache 2.0.52

  2. #2
    Are you using the default configuration for apache?
    Choose the right option ... The world is open for You..

  3. #3
    Almost... I remember playing with MaxSpareServers and similar settings when I hosted a proxy site a year ago, apart form that it's standard.

  4. #4
    can you try to make some changes in prefork module settings

    <IfModule prefork.c>
    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    ServerLimit 256
    MaxClients 256
    MacRequestPerChild 4000
    Choose the right option ... The world is open for You..

  5. #5
    Join Date
    Jul 2003
    Goleta, CA
    you might want to update your kernel while you're at it. Couple of nasty vulnerabilities were taken care of.
    Patron: I'd like my free lunch please.
    Cafe Manager: Free lunch? Did you read the fine print stating it was an April Fool's joke.
    Patron: I read the same way I listen, I ignore the parts I don't agree with. I'm suing you for false advertising.
    Cafe Owner: Is our lawyer still working pro bono?

Posting Permissions

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