View Single Post
  #7  
Old 18th October 2007, 03:53
micko_escalade micko_escalade is offline
Senior Member
 
Join Date: Jan 2006
Posts: 123
Thanks: 7
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by falko
You could try to get more performance out of your Apache: http://www.howtoforge.com/configurin...um_performance
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 ~]#

Last edited by micko_escalade; 18th October 2007 at 04:48.
Reply With Quote