Tweaking apache2.conf and my.cnf on Linux ubuntu server
Hi,
Lately my website on my vps is loading slow. It takes several seconds to load a page with no or just a few small images. I upgraded from 512mb to 768mb, and the swapping issue is taking care of. However webpages still loading slow when about 25 people online at the same time.
So I thought perhaps I have to tweak /apache2.conf and /my.cnf
***** The current settings of apache2.conf are *****
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 10
<IfModule mpm_prefork_module>
StartServers 10
MinSpareServers 1
MaxSpareServers 4
ServerLimit 25
MaxClients 25
MaxRequestsPerChild 500
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_event_module>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
I have an average of 1000 visitors a day on the vps, with about 12000 pageviews in approximately 18hours (it is not an English website, so located at one country)
Bookmarks