optimized httpd.conf for 720 linode on centos 5.4 x64
Does anyone have any guidelines what could be the optimal setting in httpd.conf for centos 5.4 x64?
I now have this:
Timeout 120
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 200
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 10
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<ifmodule prefork.c="">StartServers 1
MinSpareServers 3
MaxSpareServers 6
ServerLimit 24
MaxClients 24
MaxRequestsPerChild 3000</ifmodule>
But I think the server still could perform better? Can someone give me some hints/guidelines what could be the most optimal setting for apache?
I already use lighttpd to serve static content (setup by proxy in httpd.conf), and a apc for php for performance.
I run 2 magento shops and some wordpress instances on the linode fyi.
Thanks in advance!
2 Replies
Way better to switch to 32bit.
@vonskippy:
Running 64bit OS/APPS on a small VPS is your biggest waste of memory. Way better to switch to 32bit.
I strongly agree, having made exactly that test with my Linode. Little if any performance gain with large memory consumption for 64 bit.
James