strace -ttp pid的结果:
recvfrom(13, "$-1\r\n", 8192, MSG_DONTWAIT, NULL, NULL) = 5
18:17:30.918120 sendto(11, "\0\0\0\234\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0>\1\0\0\0\0\0\0{\"Ty"..., 156, 0, NULL, 0) = 156
18:17:30.918198 alarm(0) = 30
18:17:30.918279 alarm(30) = 0
18:17:30.918358 socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 14
18:17:30.918398 fcntl(14, F_GETFL) = 0x2 (flags O_RDWR)
18:17:30.918435 fcntl(14, F_SETFL, O_RDWR|O_NONBLOCK) = 0
18:17:30.918470 connect(14, {sa_family=AF_INET, sin_port=htons(3904), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
18:17:30.918531 poll(, 1, 3000) = 0 (Timeout)
18:17:33.930025 fcntl(14, F_SETFL, O_RDWR) = 0
18:17:33.930125 close(14) = 0
18:17:33.930220 write(1, "\nWarning: stream_socket_client()"..., 216) = 216
18:17:33.930332 sendto(11, "\0\0\0\317\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0^\1\0\0\0\0\0\0{\"Ty"..., 207, 0, NULL, 0) = 207
18:17:33.930494 alarm(0) = 27
18:17:33.930713 alarm(30) = 0
18:17:33.930810 socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 14
18:17:33.930852 fcntl(14, F_GETFL) = 0x2 (flags O_RDWR)
18:17:33.930888 fcntl(14, F_SETFL, O_RDWR|O_NONBLOCK) = 0
18:17:33.930923 connect(14, {sa_family=AF_INET, sin_port=htons(3904), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
18:17:33.930983 poll(, 1, 3000) = 0 (Timeout)
18:17:36.933650 fcntl(14, F_SETFL, O_RDWR) = 0
18:17:36.933778 close(14) = 0
18:17:36.933852 write(1, "\nWarning: stream_socket_client()"..., 216) = 216
18:17:36.933962 sendto(11, "\0\0\0\317\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0D\1\0\0\0\0\0\0{\"Ty"..., 207, 0, NULL, 0) = 207
18:17:36.934168 alarm(0) = 27
18:17:36.934268 alarm(30) = 0
18:17:36.934352 socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 14
18:17:36.934394 fcntl(14, F_GETFL) = 0x2 (flags O_RDWR)
18:17:36.934430 fcntl(14, F_SETFL, O_RDWR|O_NONBLOCK) = 0
18:17:36.934466 connect(14, {sa_family=AF_INET, sin_port=htons(3904), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
18:17:36.934529 poll(, 1, 3000^Cstrace: Process 1275 detached
lsof -nPp pid的结果:php 1275 root mem REG 253,1 40664 1049992 /usr/lib64/libcrypt-2.17.so
php 1275 root mem REG 253,1 163400 1061733 /usr/lib64/ld-2.17.so
php 1275 root mem REG 253,1 26254 1050290 /usr/lib64/gconv/gconv-modules.cache
php 1275 root 0u CHR 136,3 0t0 6 /dev/pts/3
php 1275 root 1w REG 253,1 8596562 547647 /www/wwwroot/chat/GatewayWorkerTest/GatewayWorker/logfile.log
php 1275 root 2w REG 253,1 8596562 547647 /www/wwwroot/chat/GatewayWorkerTest/GatewayWorker/logfile.log
php 1275 root 3u a_inode 0,9 0 4852
php 1275 root 4u unix 0xffff880023b3bc00 0t0 62399828 socket
php 1275 root 5u unix 0xffff880023b3b400 0t0 62399829 socket
php 1275 root 6u IPv4 62399830 0t0 TCP 127.0.0.1:59180->127.0.0.1:1235 (ESTABLISHED)
php 1275 root 7u IPv4 62399906 0t0 TCP 127.0.0.1:40356->127.0.0.1:3900 (ESTABLISHED)
php 1275 root 8u IPv4 62399907 0t0 TCP 127.0.0.1:49756->127.0.0.1:3901 (ESTABLISHED)
php 1275 root 9u IPv4 62399908 0t0 TCP 127.0.0.1:47856->127.0.0.1:3903 (ESTABLISHED)
php 1275 root 10u IPv4 62399909 0t0 TCP 127.0.0.1:34340->127.0.0.1:3905 (ESTABLISHED)
php 1275 root 11u IPv4 62399972 0t0 TCP 127.0.0.1:41096->127.0.0.1:3904 (ESTABLISHED)
php 1275 root 12u IPv4 62399973 0t0 TCP 127.0.0.1:44262->127.0.0.1:3902 (ESTABLISHED)
php 1275 root 13u IPv4 62407679 0t0 TCP 127.0.0.1:59230->127.0.0.1:6379 (ESTABLISHED)
php 1275 root 14u IPv4 62539471 0t0 TCP 127.0.0.1:38320->127.0.0.1:3900 (SYN_SENT)
好像是业务进程发数据给gateway进程的时候卡住了
还有就是,redis链接的时候,出现Operation now in progress,请问是什么原因呢
本机127.0.0.1都连不上,系统负载太高了吧