VPS侦探论坛

 找回密码
 注册
查看: 4733|回复: 3

军哥间断性502 Bad Gateway怎么解决?

[复制链接]
发表于 2016-4-6 12:40:27 | 显示全部楼层 |阅读模式

网站是wordpress程序

日志如下:
php-fpm.log


[06-Apr-2016 12:30:06] NOTICE: fpm is running, pid 17152

[06-Apr-2016 12:30:06] NOTICE: ready to handle connections

[06-Apr-2016 12:30:12] NOTICE: Finishing ...

[06-Apr-2016 12:30:12] NOTICE: exiting, bye-bye!

[06-Apr-2016 12:30:15] NOTICE: fpm is running, pid 17783

[06-Apr-2016 12:30:15] NOTICE: ready to handle connections

[06-Apr-2016 12:31:06] NOTICE: Finishing ...

[06-Apr-2016 12:31:06] NOTICE: exiting, bye-bye!

[06-Apr-2016 12:31:09] NOTICE: fpm is running, pid 18453

[06-Apr-2016 12:31:09] NOTICE: ready to handle connections

[06-Apr-2016 12:32:06] NOTICE: Finishing ...

[06-Apr-2016 12:32:06] NOTICE: exiting, bye-bye!

[06-Apr-2016 12:32:10] NOTICE: fpm is running, pid 19128

[06-Apr-2016 12:32:10] NOTICE: ready to handle connections

[06-Apr-2016 12:33:02] NOTICE: Finishing ...

[06-Apr-2016 12:33:02] NOTICE: exiting, bye-bye!

[06-Apr-2016 12:33:05] NOTICE: fpm is running, pid 19782

[06-Apr-2016 12:33:05] NOTICE: ready to handle connections

[06-Apr-2016 12:34:06] NOTICE: Finishing ...

[06-Apr-2016 12:34:06] NOTICE: exiting, bye-bye!

[06-Apr-2016 12:34:09] NOTICE: fpm is running, pid 20457

[06-Apr-2016 12:34:09] NOTICE: ready to handle connections

[06-Apr-2016 12:35:03] NOTICE: Finishing ...

[06-Apr-2016 12:35:03] NOTICE: exiting, bye-bye!

[06-Apr-2016 12:35:06] NOTICE: fpm is running, pid 21115

[06-Apr-2016 12:35:06] NOTICE: ready to handle connections




nginx_error.log

PROFILE: interrupts/evictions/bytes = 0/0/64
PROFILE: interrupts/evictions/bytes = 1/0/160
PROFILE: interrupts/evictions/bytes = 0/0/64
PROFILE: interrupts/evictions/bytes = 0/0/64
PROFILE: interrupts/evictions/bytes = 0/0/64
PROFILE: interrupts/evictions/bytes = 1/0/304
PROFILE: interrupts/evictions/bytes = 1/0/264


请问是什么问题啊?


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-4-6 12:58:04 | 显示全部楼层


按置顶帖 502排查方法排查一下

PROFILE: interrupts/evictions/bytes 应该是tcmalloc产生的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-4-6 19:11:07 | 显示全部楼层

原帖由 licess 于 2016-4-6 12:58 发表
按置顶帖 502排查方法排查一下

PROFILE: interrupts/evictions/bytes 应该是tcmalloc产生的

军哥,上了置顶的方式都排查过了,还是那样子!(刚好记录到502那一段日志)

现在日志变成如下:

php-fpm.log

[06-Apr-2016 19:03:03] NOTICE: Finishing ...
[06-Apr-2016 19:03:03] NOTICE: exiting, bye-bye!
[06-Apr-2016 19:03:06] NOTICE: fpm is running, pid 15242
[06-Apr-2016 19:03:06] NOTICE: ready to handle connections
[06-Apr-2016 19:03:20] WARNING: [pool www] child 15248, script '/home/wwwroot/wp-admin/admin-ajax.php' (request: "GET /wp-admin/admin-ajax.php") executing too slow (2.261656 sec), logging
[06-Apr-2016 19:03:20] NOTICE: child 15248 stopped for tracing
[06-Apr-2016 19:03:20] NOTICE: about to trace 15248



nginx_error.log

PROFILE: interrupts/evictions/bytes = 0/0/64
2016/04/06 19:03:05 [crit] 14711#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 43.251.159.8, server: www.publiselighting.com, request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.publiselighting.com", referrer: "http://www.publiselighting.com/?w3tc_note=pgcache_purge_post"
PROFILE: interrupts/evictions/bytes = 3/0/5



慢日志slow.log

[06-Apr-2016 19:02:45]  [pool www] pid 14530
script_filename = /home/wwwroot/index.php
[0x00007fddf77236e8] curl_exec() /home/wwwroot/wp-includes/class-wp-http-curl.php:239
[0x00007fddf7723330] request() /home/wwwroot/wp-includes/class-http.php:367
[0x00007fddf7721758] _dispatch_request() /home/wwwroot/wp-includes/class-http.php:277
[0x00007fddf77215b0] request() /home/wwwroot/wp-includes/class-http.php:430
[0x00007fddf7721418] get() /home/wwwroot/wp-includes/http.php:70
[0x00007fddf7720ce0] wp_safe_remote_get() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:222
[0x00007fddf77208b0] geolocate_via_api() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:130
[0x00007fddf7720608] geolocate_ip() /home/wwwroot/wp-content/plugins/woocommerce/includes/wc-core-functions.php:758
[0x00007fddf7720500] wc_get_customer_default_location() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:140
[0x00007fddf771fca8] get_default_country() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:78
[0x00007fddf771f740] __construct() /home/wwwroot/wp-content/plugins/woocommerce/woocommerce.php:301
[0x00007fffac8bcdf0] init() unknown:0
[0x00007fddf771ecd8] call_user_func_array() /home/wwwroot/wp-includes/plugin.php:525
[0x00007fddf7719be8] do_action() /home/wwwroot/wp-settings.php:392
[0x00007fddf7719830] +++ dump failed

[06-Apr-2016 19:03:20]  [pool www] pid 15248
script_filename = /home/wwwroot/wp-admin/admin-ajax.php
[0x00007f0993613f28] curl_exec() /home/wwwroot/wp-includes/class-wp-http-curl.php:239
[0x00007f0993613b70] request() /home/wwwroot/wp-includes/class-http.php:367
[0x00007f0993611f98] _dispatch_request() /home/wwwroot/wp-includes/class-http.php:277
[0x00007f0993611df0] request() /home/wwwroot/wp-includes/class-http.php:430
[0x00007f0993611c58] get() /home/wwwroot/wp-includes/http.php:70
[0x00007f0993611520] wp_safe_remote_get() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:222
[0x00007f09936110f0] geolocate_via_api() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:130
[0x00007f0993610e48] geolocate_ip() /home/wwwroot/wp-content/plugins/woocommerce/includes/wc-core-functions.php:758
[0x00007f0993610d40] wc_get_customer_default_location() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:140
[0x00007f09936104e8] get_default_country() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:78
[0x00007f099360ff80] __construct() /home/wwwroot/wp-content/plugins/woocommerce/woocommerce.php:301
[0x00007fff28739040] init() unknown:0
[0x00007f099360f518] call_user_func_array() /home/wwwroot/wp-includes/plugin.php:525
[0x00007f099360a428] do_action() /home/wwwroot/wp-settings.php:392
[0x00007f099360a070] +++ dump failed

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



禁用woocommerce插件看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-29 03:26 , Processed in 0.026618 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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