Java periodically hangs at futex and very low IO output
Currently my application periodically blocked in IO , and the output is very low . I use some command to trace the process. By using jstack i found that the app is hanging at FileOutputStream.writeBytes. By using strace -f -c -p pid to collect syscall info, i found that. For normal situation, it has both futex and write syscalls. But when it went unnormal, there are only futex syscalls. The app keeps calling futex but all failed and throw ETIMEDOUT, just like this: <futex resumed> =-1 ETIMEDOUT (Connecton timed out) futex(Ox7f823, FUTEX_WAKE_PRIVATE,1)=0 futex(Ox7f824, FUTEX_WAIT_BITSET