Skip to content

Instantly share code, notes, and snippets.

@Domon
Created May 26, 2009 03:31
Show Gist options
  • Save Domon/117873 to your computer and use it in GitHub Desktop.
Save Domon/117873 to your computer and use it in GitHub Desktop.
strace nginx worker process
recv(7, "GET / HTTP/1.1\r\nUser-Agent: Mozil"..., 1024, 0) = 592
time(NULL) = 1243308555
stat64("/webapps/blog/public/", {st_mode=S_IFDIR|0755, st_size=304, ...}) = 0
time(NULL) = 1243308555
stat64("/webapps/blog/public/index.html", 0xbf9786cc) = -1 ENOENT (No such file or directory)
time(NULL) = 1243308555
stat64("/webapps/blog/public/../config/environment.rb", {st_mode=S_IFREG|0644, st_size=1975, ...}) = 0
epoll_ctl(10, EPOLL_CTL_MOD, 7, {EPOLLIN|EPOLLOUT|EPOLLET, {u32=3109490768, u64=196383019088}}) = 0
getsockname(7, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("140.117.198.224")}, [16]) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 11
ioctl(11, FIONBIO, [1]) = 0
epoll_ctl(10, EPOLL_CTL_ADD, 11, {EPOLLIN|EPOLLOUT|EPOLLET, {u32=3109490860, u64=13355565693263089836}}) = 0
connect(11, {sa_family=AF_FILE, path="/tmp/passenger.20654/master/helper_server.sock"...}, 110) = 0
getsockopt(11, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
writev(11, [{"E\363~\263\240J\242\262\347\324\33~\220+\213\236\34\27\357PV\311\214Y\337H&_\33\5\352\27="..., 1165}], 1) = 1165
epoll_wait(10, {{EPOLLOUT, {u32=3109490768, u64=196383019088}}, {EPOLLOUT, {u32=3109490860, u64=13355565693263089836}}}, 512, 60000) = 2
gettimeofday({1243308555, 471915}, NULL) = 0
recv(7, 0xbf97bafb, 1, MSG_PEEK) = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(10, {{EPOLLOUT, {u32=3109490860, u64=13355565693263089836}}}, 512, 59999) = 1
gettimeofday({1243308555, 472315}, NULL) = 0
epoll_wait(10, {{EPOLLIN|EPOLLOUT, {u32=3109490860, u64=13355565693263089836}}}, 512, 59998) = 1
gettimeofday({1243308556, 960451}, NULL) = 0
recv(11, "HTTP/1.1 500 Internal Server Erro"..., 4096, 0) = 136
readv(11, 0xbf97b968, 1) = -1 EAGAIN (Resource temporarily unavailable)
epoll_wait(10, {{EPOLLIN|EPOLLOUT, {u32=3109490860, u64=13355565693263089836}}}, 512, 60000) = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment