Thanks for everyone's help thus far.
So far, here's what I have done:
- went ahead and upgraded my Linode to the 2GB plan.
- installed PHP-APC.
- installed the nginx helper and we-total-cache plugins into wordpress.
I also started playing around with the pm.max_children value. It seems that no matter what value I set it to, its not high enough. Right now, my settings are this:
Code:
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 4
pm.max_spare_servers = 5
pm.max_requests = 250
And I'm still seeing this in my php5-fpm log:
Code:
[26-Sep-2013 12:41:10] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 12 total children
[26-Sep-2013 12:41:11] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 0 idle, and 16 total children
[26-Sep-2013 12:41:12] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 20 total children
[26-Sep-2013 12:41:13] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 24 total children
[26-Sep-2013 12:41:14] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 28 total children
[26-Sep-2013 12:41:15] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 32 total children
[26-Sep-2013 12:41:16] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 36 total children
[26-Sep-2013 12:41:17] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 40 total children
[26-Sep-2013 12:41:18] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 44 total children
[26-Sep-2013 12:41:19] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 48 total children
[26-Sep-2013 12:41:20] WARNING: [pool www] server reached pm.max_children setting (50), consider raising it
And I'm using almost the full 2GB of ram:
Code:
➜ ~ free -m
total used free shared buffers cached
Mem: 2013 1890 123 0 307 763
-/+ buffers/cache: 819 1194
Swap: 1023 3 1020
I'm not sure what the right way to configure here is. I'm really just guessing. It seems like no matter how high I set the max_children, its not enough and I'm just using up RAM. Increasing the max_children value seems to help sites load quicker at first, until the RAM gets eaten up.
Help?