I recently upgraded my VPS(OpenVZ VT) to 2GB of RAM. Despite the configuration changes i make to the LAMP stack the websites loading times take up to 5-10 seconds to fully load. I use prefork with apc enabled on Centos 6.3. I have installed the zpanel to add control to vhosts and i currently host a few wordpress and other sites. I would like to use it as a shared hosting enviroment. Below i provide my conf files:
Apache(/etc/httpd/conf/httpd.conf):
<IfModule prefork.c>
StartServers 2
MinSpareServers 2
MaxSpareServers 5
ServerLimit 50
MaxClients 50
MaxRequestsPerChild 200
</IfModule>
MySQL(/etc/my.cnf):
# Fine Tuning
max_allowed_packet = 32M
thread_cache_size = 128
thread_stack = 192K
max_connections = 1000
table_cache = 1024
query_cache_size = 256M
query_cache_limit = 128M
query_cache_type=1
key_buffer = 64M
# End Fine Tuning
And just to clarify even more my question i would like to add that Google page speed insights suggest that my main issue is server repsonse.
My uptime output is load average: 0.36, 0.17, 0.11
Server version: Apache 2.2.15 MySQL version: 5.1
Though i am not experiencing any RAM issues, would it be better if i switch to Worker MPM?
Any performance improvement suggestions to make websites load faster? I would appreciate any help. Thanks.