Results 1 to 10 of 10
  1. #1
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73

    * Apache (httpd) Fails!

    Hi,

    I am really tensed about the problem of Apache Failure very frequently, whenever there are 150 Connections being processed and CPU Load 1-1.5, Apache (httpd) restarts...

    I am on 2.4 Celeron Processor with 512 RAM , and hosting some downloadable content which is highly downloaded at every moment... so anyone have any idea that why httpd restarts so frequently even after 30 mins when connections are 150...

    Also (For an Idea) the Bandwidth consumption is also such that in 1 hour 1 GB data is being downloaded. So, because i have never experience such issue so don't have any idea on this...


  2. #2
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Try increasing MaxClients in httpd.conf.

    Assuming your using the default config, you can simply run this shell command:

    replace "MaxClients 150" "MaxClients 300" -- /usr/local/apache/conf/httpd.conf;service httpd restart

    Let me know how it goes
    MediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
    The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business

  3. #3
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73
    thanx for your reply, but as i am new user i even do not know how to edit the httpd.conf

    So, i would be greatfull if you do let me know.

  4. #4
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Simply use the shell command I gave you.

    replace "MaxClients 150" "MaxClients 300" -- /usr/local/apache/conf/httpd.conf;service httpd restart
    that would be easier than manually editing it, but if you would like to manually edit it, try using:
    pico /usr/local/apache/conf/httpd.conf
    MediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
    The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business

  5. #5
    You may have to use nano instead of pico, because pico isnt an option on some OS anymore.
    Eleven2 Web Hosting - World-Wide Hosting, Done Right!

  6. #6
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73
    Hi,

    Thanx alot i have edited httpd.conf and i hope it would'nt happen again..

    A bundle of THANX

  7. #7
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,710
    Quote Originally Posted by SJRHosting.com
    You may have to use nano instead of pico, because pico isnt an option on some OS anymore.
    That is true but the same can be said about nano - many servers don't actually have nano installed.
    MediaLayer, LLC - www.medialayer.com Learn how we can make your website load faster, translating to better conversion rates for your business!
    The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business

  8. #8
    Join Date
    May 2003
    Location
    Florida
    Posts
    902
    Quote Originally Posted by funmaza
    Hi,

    Thanx alot i have edited httpd.conf and i hope it would'nt happen again..

    A bundle of THANX
    Remember that you must restart Apache for the changes to become effective. You can restart Apache using:
    service httpd restart

  9. #9
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73
    ok thanx for helping my problem has been solved

  10. #10
    Join Date
    Jan 2005
    Posts
    2,203
    Seems that you don't have enough ram and apache isn't good for serving large files. Also, maybe you have some of script that restart apache when it reaches x load.

    You could use lighttpd to serve those files, heard it's very good.

Posting Permissions

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