日度歸檔:2016年11月12日

vps 負載過高,博客無法訪問

最近晚上要整理整理博客, 發現博客經常無法打開。 查看 vps 進程發現 php5-fpm 進程佔用了 CPU 的大部分時間,於是去網上搜了一圈,改了改配置文件,現在 CPU 使用率基本在 20% 以下,各服務都算正常,順手做一個總結。

  1. 首先查看 /var/log/php5-fpm.log 文件,判斷大概是什麼問題。我的日誌當時一直報這個 warning:

    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 10 total
Read the rest