军哥间断性502 Bad Gateway怎么解决?
网站是wordpress程序日志如下:
php-fpm.log
NOTICE: fpm is running, pid 17152
NOTICE: ready to handle connections
NOTICE: Finishing ...
NOTICE: exiting, bye-bye!
NOTICE: fpm is running, pid 17783
NOTICE: ready to handle connections
NOTICE: Finishing ...
NOTICE: exiting, bye-bye!
NOTICE: fpm is running, pid 18453
NOTICE: ready to handle connections
NOTICE: Finishing ...
NOTICE: exiting, bye-bye!
NOTICE: fpm is running, pid 19128
NOTICE: ready to handle connections
NOTICE: Finishing ...
NOTICE: exiting, bye-bye!
NOTICE: fpm is running, pid 19782
NOTICE: ready to handle connections
NOTICE: Finishing ...
NOTICE: exiting, bye-bye!
NOTICE: fpm is running, pid 20457
NOTICE: ready to handle connections
NOTICE: Finishing ...
NOTICE: exiting, bye-bye!
NOTICE: fpm is running, pid 21115
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
请问是什么问题啊?
按置顶帖 502排查方法排查一下
PROFILE: interrupts/evictions/bytes 应该是tcmalloc产生的 原帖由 licess 于 2016-4-6 12:58 发表 https://bbs.vpser.net/images/common/back.gif
按置顶帖 502排查方法排查一下
PROFILE: interrupts/evictions/bytes 应该是tcmalloc产生的
军哥,上了置顶的方式都排查过了,还是那样子!(刚好记录到502那一段日志)
现在日志变成如下:
php-fpm.log
NOTICE: Finishing ...
NOTICE: exiting, bye-bye!
NOTICE: fpm is running, pid 15242
NOTICE: ready to handle connections
WARNING: child 15248, script '/home/wwwroot/wp-admin/admin-ajax.php' (request: "GET /wp-admin/admin-ajax.php") executing too slow (2.261656 sec), logging
NOTICE: child 15248 stopped for tracing
NOTICE: about to trace 15248
nginx_error.log
PROFILE: interrupts/evictions/bytes = 0/0/64
2016/04/06 19:03:05 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
pid 14530
script_filename = /home/wwwroot/index.php
curl_exec() /home/wwwroot/wp-includes/class-wp-http-curl.php:239
request() /home/wwwroot/wp-includes/class-http.php:367
_dispatch_request() /home/wwwroot/wp-includes/class-http.php:277
request() /home/wwwroot/wp-includes/class-http.php:430
get() /home/wwwroot/wp-includes/http.php:70
wp_safe_remote_get() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:222
geolocate_via_api() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:130
geolocate_ip() /home/wwwroot/wp-content/plugins/woocommerce/includes/wc-core-functions.php:758
wc_get_customer_default_location() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:140
get_default_country() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:78
__construct() /home/wwwroot/wp-content/plugins/woocommerce/woocommerce.php:301
init() unknown:0
call_user_func_array() /home/wwwroot/wp-includes/plugin.php:525
do_action() /home/wwwroot/wp-settings.php:392
+++ dump failed
pid 15248
script_filename = /home/wwwroot/wp-admin/admin-ajax.php
curl_exec() /home/wwwroot/wp-includes/class-wp-http-curl.php:239
request() /home/wwwroot/wp-includes/class-http.php:367
_dispatch_request() /home/wwwroot/wp-includes/class-http.php:277
request() /home/wwwroot/wp-includes/class-http.php:430
get() /home/wwwroot/wp-includes/http.php:70
wp_safe_remote_get() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:222
geolocate_via_api() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-geolocation.php:130
geolocate_ip() /home/wwwroot/wp-content/plugins/woocommerce/includes/wc-core-functions.php:758
wc_get_customer_default_location() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:140
get_default_country() /home/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-customer.php:78
__construct() /home/wwwroot/wp-content/plugins/woocommerce/woocommerce.php:301
init() unknown:0
call_user_func_array() /home/wwwroot/wp-includes/plugin.php:525
do_action() /home/wwwroot/wp-settings.php:392
+++ dump failed
[ 本帖最后由 yjg18com 于 2016-4-6 19:13 编辑 ] 禁用woocommerce插件看看
页:
[1]