系统平均负载到晚上突然变很高怎么办?
top查看是这样
PID USER PRNI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
886 mysql 20 072222853332 4640 S 16.95.486:04.16 mysqld
26680 www 20 02750322447210348 S6.02.5 0:01.20 php-fpm
26683 www 20 03444361983611096 S3.32.0 0:01.26 php-fpm
26700 www 20 03444361989211160 S3.32.0 0:01.49 php-fpm
26718 www 20 02760802639210476 S3.32.7 0:01.18 php-fpm
26651 www 20 03491442460411160 S2.72.5 0:01.45 php-fpm
26652 www 20 02686321916810476 S2.31.9 0:01.11 php-fpm
26664 www 20 03481122357211160 S1.32.4 0:01.18 php-fpm
26703 www 20 03465202184811032 S1.32.2 0:01.29 php-fpm
26679 www 20 02688801908810384 S1.01.9 0:01.44 php-fpm
26736 www 20 03467522190011032 S1.02.2 0:00.90 php-fpm
469 www 20 0 6380016312 3216 S0.71.6 4:16.25 nginx
26714 www 20 03447961992011132 S0.72.0 0:01.15 php-fpm
26715 www 20 03446921988011068 S0.72.0 0:01.14 php-fpm
13 root -2 0 0 0 0 S0.30.0 0:20.35 rcuc/0
26662 www 20 03449842028011004 S0.32.0 0:01.35 php-fpm
26702 www 20 03441801963211160 S0.32.0 0:01.21 php-fpm
白天基本不到1,晚上高到几十。。
这怎么办?
机器是linode的2G
php-fpm设置是这样
请问军哥怎么解决呢?
pm = dynamic
pm.max_children = 50
pm.start_servers = 12
pm.min_spare_servers = 6
pm.max_spare_servers = 25
pm.max_requests = 1024
pm.process_idle_timeout = 10s
request_terminate_timeout = 100
request_slowlog_timeout = 0
[ 本帖最后由 独孤羽 于 2018-11-27 20:06 编辑 ] 已解决,php-fpm调小就没事了。
页:
[1]