Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网站添加header.php监控的时候Nginx报502的错误 #24

Closed
sfzhang88 opened this issue Jun 28, 2018 · 5 comments
Closed

网站添加header.php监控的时候Nginx报502的错误 #24

sfzhang88 opened this issue Jun 28, 2018 · 5 comments

Comments

@sfzhang88
Copy link

系统环境:Centos 6.8 LNMP PHP 版本 5.5.38
在Nginx 配置文件里面添加header.php的监控的时候网站访问报502错误。

系统日志报下面的错误。请问主要是什么原因造成的,谢谢!

php-fpm[5209]: segfault at 14 ip 00007ff11b35d468 sp 00007ffec05b9d90 error 4 in tideways.so[7ff11b357000+11000]
php-fpm[14502]: segfault at 14 ip 00007f70ba4c0468 sp 00007fff4c357900 error 4 in tideways.so[7f70ba4ba000+11000]
php-fpm[14504]: segfault at 14 ip 00007f70ba4c0468 sp 00007fff4c357900 error 4 in tideways.so[7f70ba4ba000+11000]
php-fpm[36795]: segfault at 14 ip 00007f78f86f6468 sp 00007ffc31a678b0 error 4 in tideways.so[7f78f86f0000+11000]
php-fpm[36797]: segfault at 14 ip 00007f78f86f6468 sp 00007ffc31a678b0 error 4 in tideways.so[7f78f86f0000+11000]
php-fpm[36799]: segfault at 14 ip 00007f78f86f6468 sp 00007ffc31a678b0 error 4 in tideways.so[7f78f86f0000+11000]

@laynefyc
Copy link
Owner

laynefyc commented Jul 2, 2018

tideways 的版本你是多少? @sfzhang88

@sfzhang88
Copy link
Author

我安装的tideways的版本是5.5,担心5.5的扩展有问题,5.6测试也有同样的错误。
并不是所有的.php页面都报502错误,发现像下面的URL都会报502错误。
http://x.x.x.x/zabbix.php?action=discovery.view&ddreset=1
http://x.x.x.x/zabbix.php?action=discovery.view&ddreset=1
像下面的URL访问都是正常,tideways也能采集到性能数据。
http://x.x.x.x/index.php
http://x.x.x.x/idc/graphtree.php?ddreset=1

最后在header.php文件里面用TIDEWAYS_FLAGS_NO_SPANS选项把抓SQL语句的功能关闭之后,所有的页面都能正常打开,排除了Nginx配置和tideways扩展的问题。

goole了一下,说http URL里面的?后面的.的问题,我按照下面的方法也没有解决。
perftools/xhgui#209

@sfzhang88
Copy link
Author

@laynefyc 麻烦看一下我上面的我问题,能否优化,谢谢!

@laynefyc
Copy link
Owner

@sfzhang88 #19 之前有人提过了。MongoDB的key不能包含 . 符号造成的。可以通过代码替换。

@sfzhang88
Copy link
Author

@laynefyc 不懂PHP开发,能否把这个bug fix掉,研究了好长时间没有搞定。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants