
12-18-2005, 08:35 PM
|
|
Junior Guru Wannabe
|
|
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...

|

12-18-2005, 08:41 PM
|
|
Performance Specialist
|
|
Join Date: Dec 2004
Location: New York, NY
Posts: 10,338
|
|
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 - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!
|

12-18-2005, 08:56 PM
|
|
Junior Guru Wannabe
|
|
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.
|

12-18-2005, 09:11 PM
|
|
Performance Specialist
|
|
Join Date: Dec 2004
Location: New York, NY
Posts: 10,338
|
|
Simply use the shell command I gave you.
Quote:
|
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:
Quote:
|
pico /usr/local/apache/conf/httpd.conf
|
__________________
MediaLayer, LLC - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!
|

12-18-2005, 09:22 PM
|
|
Web Hosting Master
|
|
Join Date: Feb 2005
Posts: 1,356
|
|
You may have to use nano instead of pico, because pico isnt an option on some OS anymore.
|

12-18-2005, 09:28 PM
|
|
Junior Guru Wannabe
|
|
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 
|

12-18-2005, 09:30 PM
|
|
Performance Specialist
|
|
Join Date: Dec 2004
Location: New York, NY
Posts: 10,338
|
|
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 - Lightning fast web hosting since 2005. Ask about our new pure SSD storage platform!
›› First and leading provider of LiteSpeed based hosting combined with enterprise grade hardware.
›› Free Account Migrations, Custom Solutions, and Servers in US, EU, and Asia
›› Our Application Hosting plans outperform the typical VPS. Ask us about special offers on yearly plans!
|

12-18-2005, 11:41 PM
|
|
Web Hosting Master
|
|
Join Date: May 2003
Location: Florida
Posts: 877
|
|
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
|

12-25-2005, 05:53 PM
|
|
Junior Guru Wannabe
|
|
Join Date: May 2005
Location: Pakistan
Posts: 73
|
|
ok  thanx for helping my problem has been solved
|

12-25-2005, 08:58 PM
|
|
Web Hosting Master
|
|
Join Date: Jan 2005
Posts: 2,099
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|