From ad730d577f4c1146ed3e2d00d84cde45adc956b5 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 13 Aug 2013 16:44:06 +0000 Subject: [PATCH] set MaxClients 32, SA-457 I run a performance test and run 100 parallel requests. The machine swapped and crashed. I set a limit of 32 running scripts. --- web/conf/apache2.0/irspy.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/conf/apache2.0/irspy.conf b/web/conf/apache2.0/irspy.conf index efa8d5b..e735586 100644 --- a/web/conf/apache2.0/irspy.conf +++ b/web/conf/apache2.0/irspy.conf @@ -11,6 +11,12 @@ # For debian & unbuntu: please read irspy/README for a list of depending packages # +# +# an irspy toroid process takes up to 90MB for each request +# 90*32 => 3GB RAM +# +MaxClients 32 + ServerName irspy.indexdata.com ServerAlias irspy2.indexdata.com irspy irspy-dev.indexdata.com @@ -53,6 +59,7 @@ # map /toroid to CGI script irspy-toroid.cgi ScriptAlias /toroid/records /home/indexdata/irspy-toroid/irspy-toroid.cgi + # legacy ruby daemon #ProxyPass /toroid/ http://localhost:12367/ #ProxyPassReverse /toroid/ http://localhost:12367/ @@ -62,6 +69,5 @@ AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml SetOutputFilter DEFLATE - -- 1.7.10.4