i got a 2gb ram droplet. it running ubuntu 12.10 i installed wordpress MU on this vps
the droplet usually crash after every few hours now. i tried to tuning Apache config but still not help.
I Tried add 2gb and 4gb swap but still not help. use memcache, wordpress super cache, even used cloudflare CDN to help save bandwith and load but it still cannot works well.
My sites haven’t got much traffic. only 6000 pageviews/ day from 5k/visitor.
I’m not understand how to solve this issue. Here is my apache config and mysql config:
Timeout 15 MaxKeepAliveRequests 50 KeepAliveTimeout 10
<IfModule mpm_prefork_module> StartServers 1 MinSpareServers 2 MaxSpareServers 4 MaxClients 50 MaxRequestsPerChild 3000 </IfModule>
<IfModule mpm_worker_module> StartServers 1 MinSpareThreads 2 MaxSpareThreads 8 ThreadLimit 16 ThreadsPerChild 4 MaxClients 50 MaxRequestsPerChild 400 </IfModule>
<IfModule mpm_event_module> StartServers 1 MinSpareThreads 2 MaxSpareThreads 4 ThreadLimit 16 ThreadsPerChild 4 MaxClients 50 MaxRequestsPerChild 400 </IfModule>
=================== MySQL fine tune:
key_buffer = 32M max_allowed_packet = 4M thread_stack = 256K thread_cache_size = 4M
myisam-recover = BACKUP #max_connections = 50 #table_cache = 256 #thread_concurrency = 10
query_cache_limit = 8M query_cache_size = 8M
[mysqldump] quick quote-names max_allowed_packet = 32M
[mysql] #no-auto-rehash # faster start of mysql but no tab completition
[isamchk] key_buffer = 32M
if you know how to fix it, please help me. Thanks
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.