Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 05, 2008, 06:08:14 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: how to configure the httpd.conf  (Read 234 times)
crdizhi
Newbie
*
Offline Offline

Posts: 3


« on: March 01, 2008, 05:07:31 AM »

this my configuration of httpd.conf,but it's easy to hit Resource Capacity 100%,and stop work.please tell me the best configuration,
--------------------------------------------------------------------------------------------------
#
Timeout 120

#
KeepAlive Off

#
MaxKeepAliveRequests 100

#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

<IfModule prefork.c>
ServerLimit       400
StartServers       10
MinSpareServers    10
MaxSpareServers    15
MaxClients        200
MaxRequestsPerChild  10000
</IfModule>


<IfModule worker.c>
StartServers         3
MaxClients          2000
ServerLimit         25 
MinSpareThreads      50
MaxSpareThreads      200
ThreadsPerChild     100
MaxRequestsPerChild  0
</IfModule>
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 948



« Reply #1 on: March 01, 2008, 09:14:29 PM »

Hi Crdizhi,

If your server reaches the resource limit with the current settings in Apache, you would reduce ServerLimit and MaxClients  parameters in the httpd.conf. This will reduce the number of concurrent connections that will be accepted by Apache. If this is not the option for your site, you need to work on optimizing your site or consider upgrading to a dedicated plan.

I hope this is helpful.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM