It looks like java is hanging, maybe, because when I attach to local process of Eclipse in JVisualVM, open Threads view of it, then in Eclipse open heapdump, then launching Leak Suspects, it goes by, stops at
"Reference Pattern" of section "Problem Suspect 2". At this moment JVisualVM stops refreshing Threads tab (as there is no data to show, of as it is stopped).Also Eclipse process can't be terminated with kill <PID>, only kill -9 <PID> works.
Also when I tried jstack by PID, it just hanged untill I killed eclipse process.
[denixx@denixxwork ~]$ jstack 1245 > ~/eclipse_hung.tdump
Exception in thread "main" java.io.IOException: Premature EOF
at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:292)
at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:199)
at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:261)
at sun.tools.attach.HotSpotVirtualMachine.remoteDataDump(HotSpotVirtualMachine.java:218)
at sun.tools.jstack.JStack.runThreadDump(JStack.java:181)
at sun.tools.jstack.JStack.main(JStack.java:116)
So there is nothing with java, I think, it looks like some native code is hanging.