My server, Ubuntu 14.04.4 LTS, is running at high load, currently running a single site with Nginx + Wordpress + W3 Total Cache + Memcached.
I'm not sure if mysql
is causing the workload issue.
Here are the screenshot for htop
and mytop
I can tell from htop
that memory is not the bottleneck here.
It shows that mysqld
and php-fpm
are the processes using the highest resource.
Can someone tell me how to interpret mytop
and does it look normal?
1 [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||93.6%] Tasks: 361, 71 thr; 12 running
2 [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||95.6%] Load average: 19.52 22.34 19.45
3 [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||97.5%] Uptime: 71 days, 08:54:08
4 [|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||96.8%]
Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||5570/8015MB]
Swp[ 0/0MB]
MySQL on localhost (5.7.13)
load 23.92 23.12 19.55 43/528 10012 up 7+04:05:52 [05:30:09]
Queries: 103.6M qps: 175 Slow: 0.0 Se/In/Up/De(%): 79/00/00/00
Sorts: 8693 qps now: 356 Slow qps: 0.0 Threads: 37 ( 1/ 3) 79/00/00/00
Key Efficiency: 50.0% Bps in/out: 28.8k/532.7k Now in/out: 57.6k/880.7k
Or should I be looking at using fastcgi_cache instead to avoid hitting php-fpm?
UPDATE:
I have tried restarting all my services, Nginx, PHP-FPM, and MySQL.
I'm working on a site with rather high traffic, 1.1M daily pageview impressions.
After restarting all the services, the resource goes up pretty quick again.
During off-peak hours, the load value is max out at around 4.00 on my 4-core machine.
During peak hours, the load is at 20 to even 40.