VPS侦探论坛

 找回密码
 注册
查看: 4668|回复: 8

请大神帮忙看看这到底咋回事,预缓存问题。

[复制链接]
发表于 2016-2-28 17:29:55 | 显示全部楼层 |阅读模式

不能不说lnmp环境性能的确出众,我是从wdcp转到lnmp的,一用就舍不得丢了。
不过有个问题 就是预缓存。我用的是wordpress 插件wp-super-cache的预缓存功能。

环境:之前在Linode vps  CentOS 6.5 64位 wdcp环境, wordpress  插件wp-super-cache的预缓存功能一切正常。
           现在转到阿里云ecs CentOS 6.5 64位 军哥lnmp一键包环境,其它都正常 就wp-super-cache的预缓存不正常。
现象: 比如指定120分钟预缓存一次网站全部内容,时间到了后缓存页面开始工作。问题来了,只缓存几十个页面后自动停止了,一直显示定在那里不缓存了。只有等下一次的120分钟到来,又开始接着上次的id缓存剩下的页面,又缓存几十个页面又停止了。

请问这是这么回事,是不是lnmp环境里 哪里的设置需要修改??

[ 本帖最后由 gamer 于 2016-2-28 17:41 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-2-28 19:47:14 | 显示全部楼层


不清楚具体原因,你php是什么版本

开慢日志和php错误日志看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-2-28 21:05:34 | 显示全部楼层

现在用的 php 4.4.40  以前用的是5.3的

错误日志 好像就一个 nginx_error.log 25日的

2016/02/25 14:21:29 [crit] 13105#0: *1616 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 60.210.10.50, server: www.yydxh.net, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.yydxh.net"
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-2-29 10:20:54 | 显示全部楼层

回复 3# 的帖子




这个不是php-fpm的错误日志,这是nginx日志,只是说了php-fpm可能挂掉了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-2-29 11:52:08 | 显示全部楼层

军哥 帮忙看看 这是php-fpm错误日志1


[24-Feb-2016 17:48:31] NOTICE: fpm is running, pid 5298
[24-Feb-2016 17:48:31] NOTICE: ready to handle connections
[24-Feb-2016 17:56:15] NOTICE: Finishing ...
[24-Feb-2016 17:56:15] NOTICE: exiting, bye-bye!
[24-Feb-2016 17:56:16] NOTICE: fpm is running, pid 9609
[24-Feb-2016 17:56:16] NOTICE: ready to handle connections
[24-Feb-2016 18:03:07] NOTICE: Terminating ...
[24-Feb-2016 18:03:07] NOTICE: exiting, bye-bye!
[24-Feb-2016 18:03:43] NOTICE: fpm is running, pid 946
[24-Feb-2016 18:03:43] NOTICE: ready to handle connections
[24-Feb-2016 18:26:58] NOTICE: Finishing ...
[24-Feb-2016 18:26:58] NOTICE: exiting, bye-bye!
[24-Feb-2016 18:26:59] NOTICE: fpm is running, pid 1624
[24-Feb-2016 18:26:59] NOTICE: ready to handle connections

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2016-2-29 11:52:53 | 显示全部楼层

军哥 帮忙看看 这是php-fpm错误日志2


[25-Feb-2016 12:10:53] WARNING: [pool www] child 8449, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (122.673179 sec), terminating
[25-Feb-2016 12:10:53] WARNING: [pool www] child 8449 exited on signal 15 (SIGTERM) after 1326.200194 seconds from start
[25-Feb-2016 12:10:53] NOTICE: [pool www] child 9638 started
[25-Feb-2016 12:38:07] WARNING: [pool www] child 9913, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (124.558860 sec), terminating
[25-Feb-2016 12:38:07] WARNING: [pool www] child 9913 exited on signal 15 (SIGTERM) after 1380.012407 seconds from start
[25-Feb-2016 12:38:07] NOTICE: [pool www] child 10837 started
[25-Feb-2016 13:38:40] WARNING: [pool www] child 10837, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (121.162037 sec), terminating
[25-Feb-2016 13:38:40] WARNING: [pool www] child 10837 exited on signal 15 (SIGTERM) after 3633.405515 seconds from start
[25-Feb-2016 13:38:40] NOTICE: [pool www] child 12410 started
[25-Feb-2016 14:21:28] NOTICE: Finishing ...
[25-Feb-2016 14:21:28] NOTICE: exiting, bye-bye!
[25-Feb-2016 14:21:30] NOTICE: fpm is running, pid 17243
[25-Feb-2016 14:21:30] NOTICE: ready to handle connections
[25-Feb-2016 14:23:48] NOTICE: Terminating ...
[25-Feb-2016 14:23:48] NOTICE: exiting, bye-bye!
[25-Feb-2016 14:24:24] NOTICE: fpm is running, pid 945
[25-Feb-2016 14:24:24] NOTICE: ready to handle connections
[25-Feb-2016 14:24:32] 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 5 total children
[25-Feb-2016 14:24:33] 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 6 total children
[25-Feb-2016 14:55:50] NOTICE: Terminating ...
[25-Feb-2016 14:55:50] NOTICE: exiting, bye-bye!
[25-Feb-2016 14:56:26] NOTICE: fpm is running, pid 945
[25-Feb-2016 14:56:26] NOTICE: ready to handle connections
[25-Feb-2016 15:25:53] WARNING: [pool www] child 1433, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (124.962445 sec), terminating
[25-Feb-2016 15:25:53] WARNING: [pool www] child 1433 exited on signal 15 (SIGTERM) after 1762.695950 seconds from start
[25-Feb-2016 15:25:53] NOTICE: [pool www] child 2912 started
[25-Feb-2016 15:40:39] NOTICE: Terminating ...
[25-Feb-2016 15:40:39] NOTICE: exiting, bye-bye!
[25-Feb-2016 15:41:15] NOTICE: fpm is running, pid 945
[25-Feb-2016 15:41:15] NOTICE: ready to handle connections
[25-Feb-2016 15:46:15] WARNING: [pool www] child 947, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (107.222601 sec), terminating
[25-Feb-2016 15:46:15] WARNING: [pool www] child 947 exited on signal 15 (SIGTERM) after 300.009709 seconds from start
[25-Feb-2016 15:46:15] NOTICE: [pool www] child 1876 started
[25-Feb-2016 16:43:29] WARNING: [pool www] child 1828, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (107.134330 sec), terminating
[25-Feb-2016 16:43:29] WARNING: [pool www] child 1828 exited on signal 15 (SIGTERM) after 3474.163169 seconds from start
[25-Feb-2016 16:43:29] NOTICE: [pool www] child 3819 started
[25-Feb-2016 16:44:36] WARNING: [pool www] child 1876, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (113.054784 sec), terminating
[25-Feb-2016 16:44:36] WARNING: [pool www] child 1876 exited on signal 15 (SIGTERM) after 3500.070658 seconds from start
[25-Feb-2016 16:44:36] NOTICE: [pool www] child 3926 started
[25-Feb-2016 18:26:49] WARNING: [pool www] child 6008, script '/home/wwwroot/www.yydxh.net/wp-cron.php' (request: "POST /wp-cron.php") execution timed out (104.414525 sec), terminating
[25-Feb-2016 18:26:49] WARNING: [pool www] child 6008 exited on signal 15 (SIGTERM) after 2684.491998 seconds from start
[25-Feb-2016 18:26:49] NOTICE: [pool www] child 7671 started
[25-Feb-2016 19:14:42] 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 9 total children
[25-Feb-2016 19:14:43] WARNING: [pool www] server reached pm.max_children setting (10), consider raising it
[25-Feb-2016 20:42:32] WARNING: [pool www] child 9504 exited on signal 11 (SIGSEGV) after 5271.317220 seconds from start
[25-Feb-2016 20:42:32] NOTICE: [pool www] child 12444 started
[25-Feb-2016 20:42:34] WARNING: [pool www] child 12444 exited on signal 11 (SIGSEGV) after 2.261552 seconds from start
[25-Feb-2016 20:42:34] NOTICE: [pool www] child 12445 started
[25-Feb-2016 20:47:01] WARNING: [pool www] child 9485 exited on signal 11 (SIGSEGV) after 5541.724221 seconds from start
[25-Feb-2016 20:47:01] NOTICE: [pool www] child 12594 started
[25-Feb-2016 20:47:03] WARNING: [pool www] child 9516 exited on signal 11 (SIGSEGV) after 5540.616623 seconds from start
[25-Feb-2016 20:47:03] NOTICE: [pool www] child 12597 started
[25-Feb-2016 20:47:04] WARNING: [pool www] child 12594 exited on signal 11 (SIGSEGV) after 3.097226 seconds from start
[25-Feb-2016 20:47:04] NOTICE: [pool www] child 12598 started
[25-Feb-2016 21:06:20] WARNING: [pool www] child 8572 exited on signal 11 (SIGSEGV) after 8217.406244 seconds from start
[25-Feb-2016 21:06:20] NOTICE: [pool www] child 13279 started
[25-Feb-2016 21:06:20] WARNING: [pool www] child 8610 exited on signal 11 (SIGSEGV) after 8156.393404 seconds from start
[25-Feb-2016 21:06:20] NOTICE: [pool www] child 13280 started
[25-Feb-2016 21:20:08] WARNING: [pool www] child 9510 exited on signal 11 (SIGSEGV) after 7527.129145 seconds from start
[25-Feb-2016 21:20:08] NOTICE: [pool www] child 13760 started
[25-Feb-2016 22:07:08] WARNING: [pool www] child 12598 exited on signal 11 (SIGSEGV) after 4804.210650 seconds from start
[25-Feb-2016 22:07:08] NOTICE: [pool www] child 14976 started
[25-Feb-2016 22:07:08] WARNING: [pool www] child 12445 exited on signal 11 (SIGSEGV) after 5074.475226 seconds from start
[25-Feb-2016 22:07:08] NOTICE: [pool www] child 14977 started
 楼主| 发表于 2016-2-29 12:07:04 | 显示全部楼层

军哥 我看了看php-fpm.conf里的设置 是不是跟这里面的设置有关?


pm.max_children = 10
是不是跟这个子进程数量有关?设小了??
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-2-29 13:09:53 | 显示全部楼层

回复 6# 的帖子


上面日志只有wp-cron执行超时的信息,可以增加超时时间或设为0不限制试试,置顶帖502排查解决方法里有具体修改方法
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-2-29 13:22:56 | 显示全部楼层

谢了 军哥

我试试

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 23:30 , Processed in 0.030611 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表