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.1Though 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.
Answer
Your question is quite bad for a variety of reasons
- You don’t define what “slow” is
- You don’t give any detail about what the server is running
- You don’t give any performance measurements
- You’re using a control panel, do you actually know what you’re doing?
And most importantly:
You’re using a VPS. There’s no way you can properly troubleshoot this, as your VPS provider may simply be overloading his servers. Ask them why your server is so slow.
Attribution
Source : Link , Question Author : vsapountzis , Answer Author : Dennis Kaarsemaker