Skip to content

Instantly share code, notes, and snippets.

@summerwind
Last active September 19, 2015 13:05
Show Gist options
  • Save summerwind/a3346fb50663fac93cd7 to your computer and use it in GitHub Desktop.
Save summerwind/a3346fb50663fac93cd7 to your computer and use it in GitHub Desktop.
H2O のプロセスが暴走する

strace

epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1

/proc/{pid}/fd

dr-x------ 2 root root  0  9月 18 21:50 .
dr-xr-xr-x 7 h2o  h2o   0  9月 18 20:01 ..
lr-x------ 1 root root 64  9月 18 21:50 0 -> pipe:[3274535934]
l-wx------ 1 root root 64  9月 18 21:50 1 -> /var/log/h2o/error.log-20150917
lrwx------ 1 root root 64  9月 18 21:50 10 -> socket:[517837684]
l-wx------ 1 root root 64  9月 18 21:50 2 -> /var/log/h2o/error.log-20150917
l-wx------ 1 root root 64  9月 18 21:50 3 -> /var/log/h2o/access.log
lrwx------ 1 root root 64  9月 18 21:50 4 -> [eventpoll]
lrwx------ 1 root root 64  9月 18 21:50 5 -> socket:[2248869464]
lrwx------ 1 root root 64  9月 18 21:50 6 -> socket:[2248869482]
l-wx------ 1 root root 64  9月 18 21:50 7 -> pipe:[3274534792]
lr-x------ 1 root root 64  9月 18 21:50 8 -> pipe:[3274535947]
l-wx------ 1 root root 64  9月 18 21:50 9 -> pipe:[3274535947]

ss -na

Netid  State      Recv-Q Send-Q                                                                   Local Address:Port                                                                     Peer Address:Port
nl     UNCONN     0      0                                                                                    0:0                                                                                    *
nl     UNCONN     0      0                                                                                    6:0                                                                                    *
nl     UNCONN     0      0                                                                                    9:0                                                                                    *
nl     UNCONN     0      0                                                                                    9:1                                                                                    *
nl     UNCONN     0      0                                                                                   10:0                                                                                    *
nl     UNCONN     0      0                                                                                   15:-101595918                                                                                *
nl     UNCONN     0      0                                                                                   15:1                                                                                    *
nl     UNCONN     0      0                                                                                   15:-101595919                                                                                *
nl     UNCONN     0      0                                                                                   15:0                                                                                    *
nl     UNCONN     0      0                                                                                   15:-101595908                                                                                *
nl     UNCONN     0      0                                                                                   15:102                                                                                  *
nl     UNCONN     0      0                                                                                   16:0                                                                                    *
u_str  ESTAB      0      0                                                                                    * 837189008                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 837189009                                                                               * 0
u_str  LISTEN     0      0                                                                 /run/systemd/private 1120319154                                                                               * 0
u_str  LISTEN     0      0                                                          /run/systemd/journal/stdout 1120381045                                                                               * 0
u_str  LISTEN     0      0                                                      /var/run/dbus/system_bus_socket 1120468076                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120471753                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120475014                                                                               * 0
u_str  ESTAB      0      0                                                          /run/systemd/journal/stdout 1120475019                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120475170                                                                               * 0
u_str  ESTAB      0      0                                                          /run/systemd/journal/stdout 1120475174                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120475353                                                                               * 0
u_str  ESTAB      0      0                                                          /run/systemd/journal/stdout 1120475356                                                                               * 0
u_str  LISTEN     0      0                                                                   /run/saslauthd/mux 1120476631                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120476650                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120479045                                                                               * 0
u_str  ESTAB      0      0                                                          /run/systemd/journal/stdout 1120479053                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120529058                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120529060                                                                               * 0
u_str  ESTAB      0      0                                                      /var/run/dbus/system_bus_socket 1120529064                                                                               * 0
u_str  ESTAB      0      0                                                      /var/run/dbus/system_bus_socket 1120529079                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120965862                                                                               * 0
u_str  ESTAB      0      0                                                          /run/systemd/journal/stdout 1120965866                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1120973654                                                                               * 0
u_str  ESTAB      0      0                                                          /run/systemd/journal/stdout 1120973667                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1121050048                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1121050049                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1121141046                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1121141048                                                                               * 0
u_str  ESTAB      0      0                                                                                    * 1121229028                                                                               * 0
u_str  ESTAB      0      0                                                          /run/systemd/journal/stdout 1121229033                                                                               * 0
u_str  LISTEN     0      0                                                            /var/lib/mysql/mysql.sock 1121861153                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 837184795                                                                               * 0
u_dgr  ESTAB      0      0                                  @/org/freedesktop/systemd1/notify/85797094366914922 1120319089                                                                               * 0
u_dgr  ESTAB      0      0                                                               /run/systemd/shutdownd 1120380961                                                                               * 0
u_dgr  ESTAB      0      0                                                          /run/systemd/journal/socket 1120381061                                                                               * 0
u_dgr  ESTAB      0      0                                                                             /dev/log 1120381069                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1120426524                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1120426756                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1120426758                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1120476624                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1120476646                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1120489123                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1120990008                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 1497748505                                                                               * 0
u_dgr  ESTAB      0      0                                                                                    * 2121542666                                                                               * 0
u_dgr  LISTEN     0      0                                                                    /run/udev/control 1120388145                                                                               * 0
tcp    LISTEN     0      0                                                                                    *:8000                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:3843                                                                                *:*
tcp    LISTEN     0      0                                                                            127.0.0.1:9000                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:3306                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:80                                                                                  *:*
tcp    LISTEN     0      0                                                                            127.0.0.1:8022                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:7000                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:443                                                                                 *:*
tcp    FIN-WAIT-2 0      0                                                                       182.163.94.170:80                                                                    126.141.118.212:52590
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:34896                                                                       127.0.0.1:8000
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:35011                                                                       127.0.0.1:8000
tcp    FIN-WAIT-2 0      0                                                                       182.163.94.170:80                                                                    126.141.118.212:52591
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:34909                                                                       127.0.0.1:8000
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:9000                                                                        127.0.0.1:39071
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:9000                                                                        127.0.0.1:39192
tcp    ESTAB      0      0                                                                       182.163.94.170:3843                                                                    61.197.174.99:57893
tcp    TIME-WAIT  0      0                                                                       182.163.94.170:80                                                                    101.226.167.203:42576
tcp    TIME-WAIT  0      0                                                                       182.163.94.170:80                                                                       54.249.8.242:40291
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:9000                                                                        127.0.0.1:39186
tcp    TIME-WAIT  0      0                                                                       182.163.94.170:80                                                                       54.249.8.242:40278
tcp    LISTEN     0      0                                                                                   :::3843                                                                               :::*
tcp    LISTEN     0      0                                                                                    *:8000                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:3843                                                                                *:*
tcp    LISTEN     0      0                                                                            127.0.0.1:9000                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:3306                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:80                                                                                  *:*
tcp    LISTEN     0      0                                                                            127.0.0.1:8022                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:7000                                                                                *:*
tcp    LISTEN     0      0                                                                                    *:443                                                                                 *:*
tcp    FIN-WAIT-2 0      0                                                                       182.163.94.170:80                                                                    126.141.118.212:52590
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:34896                                                                       127.0.0.1:8000
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:35011                                                                       127.0.0.1:8000
tcp    FIN-WAIT-2 0      0                                                                       182.163.94.170:80                                                                    126.141.118.212:52591
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:34909                                                                       127.0.0.1:8000
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:9000                                                                        127.0.0.1:39071
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:9000                                                                        127.0.0.1:39192
tcp    ESTAB      0      7632                                                                    182.163.94.170:3843                                                                    61.197.174.99:57893
tcp    TIME-WAIT  0      0                                                                       182.163.94.170:80                                                                    101.226.167.203:42576
tcp    TIME-WAIT  0      0                                                                       182.163.94.170:80                                                                       54.249.8.242:40291
tcp    TIME-WAIT  0      0                                                                            127.0.0.1:9000                                                                        127.0.0.1:39186
tcp    TIME-WAIT  0      0                                                                       182.163.94.170:80                                                                       54.249.8.242:40278
tcp    LISTEN     0      0                                                                                   :::3843                                                                               :::*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment