Pavel Penchev wrote:
>
> Yes, the proxy is an option 10x for the advice. I already started playing with the
>max number of processes and the size and I'm interested what are your optimal
>settings.
Ok. But keep in mind that this is good for my configuration -a low
traffic web site-, this may not apply to you, you've been warned ;)
Below you have some excerpts of my configuration (not the whole ;)
Proxy:
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
<IfModule mod_proxy.c>
ProxyRequests On
CacheRoot "/opt/apache/proxy"
CacheSize 102400
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
ProxyReceiveBufferSize 102400
</IfModule>
and, inside one of the vhosts:
ServerName seminari.gulch.crs4.it
RewriteEngine On
RewriteRule ^proxy:.* - [F]
RewriteRule ^(.*/)$ http://%{HTTP_HOST}:8200$1 [P]
RewriteRule ^(.*\.xml)$ http://%{HTTP_HOST}:8200$1 [P]
ProxyPassReverse / http://seminari.gulch.crs4.it/
ProxyVia On
On the AxKit side:
MinSpareServers 2
MaxSpareServers 4
StartServers 3
MaxClients 10
MaxRequestsPerChild 10
That is, AxKit processes cannot grow too much in number (10 at most),
and they cannot grow too much in size -since they die after 10
connections. This could result in performance loss for heavy-loaded
sites (I believe), and you probably can increase that seen you've much
more RAM than we have.
> But why is this problem? I can't see what will cause 40M additional memory to be
>taken per process.
> I'm using Slackware 8.0 with 512M of RAM.
Maybe the fact that mod_perl caches code and data in RAM along the way?
:-)
Ciao
Marco
--
Marco Marongiu Email: [EMAIL PROTECTED]
CRS4 Research Center Phone: +39 070 2796 336
NCS Division Fax: +39 070 2796 216
NSM Group WWW: http://bugs.unica.it:4444/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]