Lately my server (i7-2600 @ 4x3.4ghz, 8GB Ram) is getting really high load averages. Ive cached the most popular pages and tried to remove them aswell to test if they are the fault, but it gives no significant changes.
Load average is below 1.0 when I restart my server then suddenly it starts growing and goes to 6.0 - 25.00 and I get 504 gateway timeout errors and ssh is getting really slow and it causes a lot of problems.
I think it has something to do with my php-fpm config, because Ive been using mysqltuner.pl and following the instructions there, also as I said Ive cached and removed for few minutes the most popular pages and they also have heavy queries with left joins etc and that didnt give significant changes I mean the load could drop for about 5%, but thats not what I`m after.
My site gets about 500 unique users every 5 minutes (google analytics real time statistics) and about 5-15 pageviews every second.
So here is my php-fpm config, can anyone suggest what to adjust?
pm = dynamic
pm.max_children = 500
pm.start_servers = 400
pm.min_spare_servers = 50
pm.max_spare_servers = 500
pm.max_requests = 0