简介php
教程html
命令linux
[root@localhost ~]# tcpdump --help tcpdump version 4.1-PRE-CVS_2012_03_26 libpcap version 1.4.0 Usage: tcpdump [-aAdDefIKlLnNOpqRStuUvxX] [ -B size ] [ -c count ] [ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ] [ -i interface ] [ -M secret ] [ -r file ] [ -s snaplen ] [ -T type ] [ -w file ] [ -W filecount ] [ -y datalinktype ] [ -z command ] [ -Z user ] [ expression ]
故障:A机器提供web服务器,B机器curl,瞬间返回结果;C机器curl,间隔20秒后,才返回结果web
排查过程:express
结果获得两份tcp包,借助wireshark工具进行分析 A到B 服务器
A到C 网络
从上述截图能够看出,问题出如今php的扩展xdebug,打开php配置文件,注释xdebug后,恢复正常访问 缘由在phpxdebug调试的时候,A到B被xdebug进行了控制handle
curl
zend_extension=xdebug.so xdebug.default_enable = On xdebug.collect_params = On xdebug.remote_connect_back = On xdebug.remote_host = xdebug.remote_port = 9090 xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_log = "/tmp/xdebug.log"
@author 詹巨章 zhanjuzhang@gmail.comtcp
@date 2015/7/19 16:27:25工具