Optimal settings for a high traffic site?

This is a discussion on Optimal settings for a high traffic site? within the Linux Web Servers forums, part of the Web Server and Related Forums category; I have a dual 2.8Ghz Zeon/1.5GB RAM running Redhat 7.2 with Apache 2.0. I get ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-25-2005
Rob
 
Posts: n/a
Default Optimal settings for a high traffic site?

I have a dual 2.8Ghz Zeon/1.5GB RAM running Redhat 7.2 with Apache 2.0.
I get over 500,000 page loads per day. The site is a combination of
static and cgi pages. I'm trying to get the optimal settings for
MaxClients and Servers in the http.conf. Here are my current settings:

<IfModule prefork.c>
StartServers 128
MinSpareServers 64
MaxSpareServers 128
MaxClients 300
MaxRequestsPerChild 10000
</IfModule>

<IfModule worker.c>
StartServers 5
MaxClients 256
MinSpareThreads 100
MaxSpareThreads 200
ThreadsPerChild 100
MaxRequestsPerChild 0
</IfModule>

<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>

Any help on this is greatly appreciated.

Thanks

  #2 (permalink)  
Old 05-25-2005
David Dorward
 
Posts: n/a
Default Re: Optimal settings for a high traffic site?

Rob wrote:

> I have a dual 2.8Ghz Zeon


Do you mean Xeon?

> /1.5GB RAM running Redhat 7.2


Yikes! That's old and unsupported. I hope you've been tracking security
updates for all the packages you use on it.

> with Apache 2.0. I get over 500,000 page loads per day. The site is a
> combination of static and cgi pages.


You should find you get a hefty performance boost if you port your CGI
scripts to mod_perl (or whatever is appropriate for the language you write
your CGI in). That will probably bring more benefit then twiddling around
with the number of Clients and Servers Apache deals with at once.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0