Quote:
|
Originally Posted by falko
|
Thanks for the reply!
Without some detailed instruction I'm really lost in this howto. I found some info on the web for MaxRequestsPerChild but then I guess after v1.3 of apache they started using <IfModule worker.c> and <IfModule prefork.c> so for worker I changed from 0 (which means infinite connections) to 100. That did not do anything my memory still goes from ~170MB down to 2MB after some time.
I also think I have this part setup wrong, do all virtual sites needs to be listed in /etc/httpd/conf/httpd.conf
with this setup ?
Code:
<VirtualHost *:80>
DocumentRoot "/var/www/domain1.com"
ServerName www.domain1.com
ServerAlias domain1.com
ErrorLog /var/log/httpd/domain1_com_error_log
CustomLog /var/log/httpd/domain1_com_access_log combined
<Directory "/var/www/domain1.com">
allow from all
Options -Indexes
</Directory>
</VirtualHost>
and so on with domain2 etc.
In the late hours when no users are active
in less 10 seconds after loading 2 virtual domain sites my memory went from 40 to 28MB
Code:
[root@linux ~]# free -t -m
total used free shared buffers cached
Mem: 256 215 40 0 0 119
-/+ buffers/cache: 95 160
Swap: 255 0 255
Total: 512 215 296
[root@linux ~]# free -t -m
total used free shared buffers cached
Mem: 256 219 36 0 0 121
-/+ buffers/cache: 98 158
Swap: 255 0 255
Total: 512 219 292
[root@linux ~]# free -t -m
total used free shared buffers cached
Mem: 256 227 28 0 0 123
-/+ buffers/cache: 103 152
Swap: 255 0 255
Total: 512 227 284
[root@linux ~]#
Recent comments
1 day 1 hour ago
1 day 1 hour ago
1 day 6 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 19 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 7 hours ago