Hi mistwang,
There's output in my previous post #5, it hasn't changed any since the problem occured in May (but see attached and below). I can't tell if Mongrel is sending a valid response back. Restarting mongrel or lwsw when it is occuring stops the problem, but it'll happen again five minutes later.
Look at 'florists_in_rg21_hampshire_england_uk' or 'florists_in_ellisfield_hampshire_england_uk' in here
Mongrel is closing with EBADF, Litespeed doesn't seem to have any errors I can see but is requesting the file alot).
LiteSpeed:
[root@web rails]# strace -p 16899 -s 124
Process 16899 attached - interrupt to quit
gettimeofday({1193683853, 953263}, NULL) = 0
epoll_wait(6, {{EPOLLIN, {u32=17, u64=17}}}, 1365, 100) = 1
read(17, "", 1460) = 0
epoll_ctl(6, EPOLL_CTL_DEL, 17, {0, {u32=17, u64=17}}) = 0
close(17) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 17
fcntl64(17, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(17, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(17, {sa_family=AF_INET, sin_port=htons(8021), sin_addr=inet_addr("10.245.11.69")}, 16) = -1 EINPROGRESS (Operation now in progress)
fcntl64(17, F_SETFD, FD_CLOEXEC) = 0
epoll_ctl(6, EPOLL_CTL_ADD, 17, {EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=17, u64=17}}) = 0
time(NULL) = 1193683853
gettimeofday({1193683853, 956105}, NULL) = 0
epoll_wait(6, {{EPOLLOUT, {u32=17, u64=17}}}, 1365, 100) = 1
getsockopt(17, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
writev(17, [{"GET /flower_delivery/florists_in_rg21_hampshire_england_uk HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pj"..., 436}, {"X-Forwarded-For: 74.124.192.139\r\n\r\n", 35}], 2) = 471
epoll_ctl(6, EPOLL_CTL_MOD, 17, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=17, u64=17}}) = 0
time(NULL) = 1193683853
gettimeofday({1193683853, 956694}, NULL) = 0
epoll_wait(6, {{EPOLLIN, {u32=5, u64=5}}}, 1365, 100) = 1
read(5, "", 1460) = 0
epoll_ctl(6, EPOLL_CTL_DEL, 5, {0, {u32=5, u64=5}}) = 0
close(5) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(5, {sa_family=AF_INET, sin_port=htons(8021), sin_addr=inet_addr("10.245.11.69")}, 16) = -1 EINPROGRESS (Operation now in progress)
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
epoll_ctl(6, EPOLL_CTL_ADD, 5, {EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=5, u64=5}}) = 0
time(NULL) = 1193683853
gettimeofday({1193683853, 959090}, NULL) = 0
epoll_wait(6, {{EPOLLOUT, {u32=5, u64=5}}}, 1365, 100) = 1
getsockopt(5, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
writev(5, [{"GET /flower_delivery/florists_in_ellisfield_hampshire_england_uk HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, im"..., 442}, {"X-Forwarded-For: 74.124.192.139\r\n\r\n", 35}], 2) = 477
epoll_ctl(6, EPOLL_CTL_MOD, 5, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=5, u64=5}}) = 0
time(NULL) = 1193683853
gettimeofday({1193683853, 959682}, NULL) = 0
epoll_wait(6, {{EPOLLIN, {u32=17, u64=17}}}, 1365, 100) = 1
read(17, "", 1460) = 0
epoll_ctl(6, EPOLL_CTL_DEL, 17, {0, {u32=17, u64=17}}) = 0
close(17) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 17
fcntl64(17, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(17, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(17, {sa_family=AF_INET, sin_port=htons(8021), sin_addr=inet_addr("10.245.11.69")}, 16) = -1 EINPROGRESS (Operation now in progress)
fcntl64(17, F_SETFD, FD_CLOEXEC) = 0
epoll_ctl(6, EPOLL_CTL_ADD, 17, {EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=17, u64=17}}) = 0
time(NULL) = 1193683853
gettimeofday({1193683853, 961588}, NULL) = 0
epoll_wait(6, {{EPOLLOUT, {u32=17, u64=17}}}, 1365, 100) = 1
getsockopt(17, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
writev(17, [{"GET /flower_delivery/florists_in_rg21_hampshire_england_uk HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pj"..., 436}, {"X-Forwarded-For: 74.124.192.139\r\n\r\n", 35}], 2) = 471
epoll_ctl(6, EPOLL_CTL_MOD, 17, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=17, u64=17}}) = 0
time(NULL) = 1193683853
gettimeofday({1193683853, 962173}, NULL) = 0
epoll_wait(6, {{EPOLLIN, {u32=5, u64=5}}}, 1365, 100) = 1
read(5, "", 1460) = 0
epoll_ctl(6, EPOLL_CTL_DEL, 5, {0, {u32=5, u64=5}}) = 0
close(5) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(5, {sa_family=AF_INET, sin_port=htons(8021), sin_addr=inet_addr("10.245.11.69")}, 16) = -1 EINPROGRESS (Operation now in progress)
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
epoll_ctl(6, EPOLL_CTL_ADD, 5, {EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP, {u32=5, u64=5}}) = 0
time(NULL) = 1193683853
gettimeofday({1193683853, 965793}, NULL) = 0
epoll_wait(6, {{EPOLLOUT, {u32=5, u64=5}}}, 1365, 100) = 1
getsockopt(5, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
Mongrel:
[root@apps rails]# strace -s 124 -p 6090
Process 6090 attached - interrupt to quit
gettimeofday({1193683852, 132459}, NULL) = 0
gettimeofday({1193683852, 132528}, NULL) = 0
select(34, [3 33], [], [], {0, 0}) = 1 (in [3], left {0, 0})
read(5, "GET /flower_delivery/florists_in_ellisfield_hampshire_england_uk HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, im"..., 16384) = 477
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(5) = 0
munmap(0xb62dd000, 4096) = 0
close(5) = -1 EBADF (Bad file descriptor)
munmap(0xb62de000, 4096) = 0
gettimeofday({1193683852, 133107}, NULL) = 0
select(34, [33], [], [], {0, 0}) = 0 (Timeout)
accept(3, {sa_family=AF_INET, sin_port=htons(44429), sin_addr=inet_addr("10.245.11.68")}, [16]) = 5
fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(5, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb62de000
_llseek(5, 0, 0xbfe194b4, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(5, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb62dd000
_llseek(5, 0, 0xbfe194b4, SEEK_CUR) = -1 ESPIPE (Illegal seek)
setsockopt(5, SOL_TCP, TCP_CORK, [1], 4) = 0
gettimeofday({1193683852, 133837}, NULL) = 0
select(34, [5 33], [], [], {0, 0}) = 1 (in [5], left {0, 0})
gettimeofday({1193683852, 133988}, NULL) = 0
gettimeofday({1193683852, 134030}, NULL) = 0
select(34, [3 33], [], [], {0, 0}) = 1 (in [3], left {0, 0})
read(5, "GET /flower_delivery/florists_in_rg21_hampshire_england_uk HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pj"..., 16384) = 471
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(5) = 0
munmap(0xb62dd000, 4096) = 0
close(5) = -1 EBADF (Bad file descriptor)
munmap(0xb62de000, 4096) = 0
gettimeofday({1193683852, 134521}, NULL) = 0
select(34, [33], [], [], {0, 0}) = 0 (Timeout)
accept(3, {sa_family=AF_INET, sin_port=htons(44430), sin_addr=inet_addr("10.245.11.68")}, [16]) = 5
fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(5, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb62de000
_llseek(5, 0, 0xbfe194b4, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(5, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb62dd000
_llseek(5, 0, 0xbfe194b4, SEEK_CUR) = -1 ESPIPE (Illegal seek)
setsockopt(5, SOL_TCP, TCP_CORK, [1], 4) = 0
gettimeofday({1193683852, 135199}, NULL) = 0
select(34, [5 33], [], [], {0, 0}) = 1 (in [5], left {0, 0})
gettimeofday({1193683852, 135346}, NULL) = 0
gettimeofday({1193683852, 135388}, NULL) = 0
select(34, [3 33], [], [], {0, 0}) = 1 (in [3], left {0, 0})