0 Replies Latest reply on Jan 24, 2017 6:57 AM by user13616133

    Threads in JVM hangs short time after initialization

    user13616133

      We included the JVM in our C++ application to do db operations.

      By one of our customers it happens regularly a short time after JVM initialization that all JVM threads hang.

      The only solution is to kill the application and restart it.

      Currently we are using the following Java version:

       

        java version "1.8.0_111"

        Java(TM) SE Runtime Environment (build 1.8.0_111-b14)

        Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode)

       

      This is the stacktrace of a hunging thread (the stacktraces are may not be complete because there are no *.pdb files available for the JVM dlls):

       

        23  Id: 7f0.3814 Suspend: 0 Teb: 00007ff7`5c650000 Unfrozen

      Child-SP          RetAddr           Call Site

      00000000`05f1a8f8 00007ff9`3c8a1118 ntdll!ZwWaitForSingleObject+0xa

      00000000`05f1a900 00000000`53be895d KERNELBASE!WaitForSingleObjectEx+0x94

      00000000`05f1a9a0 00000000`53b6cf6d jvm!JVM_FindSignal+0x2d7d

      00000000`05f1a9d0 00000000`53b8cf67 jvm!JVM_GetThreadStateNames+0x7ef8d

      00000000`05f1aad0 00000000`53a64f27 jvm!JVM_GetThreadStateNames+0x9ef87

      00000000`05f1ab10 00000000`53a65375 jvm!JVM_GetManagementExt+0xf0d47

      00000000`05f1ac20 00000000`53b750a5 jvm!JVM_GetManagementExt+0xf1195

      00000000`05f1ac90 00000000`53adad20 jvm!JVM_GetThreadStateNames+0x870c5

      00000000`05f1ad30 00000000`12276fac jvm!JVM_NewInstanceFromConstructor+0xe0

      00000000`05f1ad60 00000000`0ea673d0 0x12276fac

      00000000`05f1ad68 00000000`05f1add8 0xea673d0

      00000000`05f1ad70 00000000`20004cbc 0x5f1add8

       

        25  Id: 7f0.2e18 Suspend: 0 Teb: 00007ff7`5c648000 Unfrozen

      Child-SP          RetAddr           Call Site

      00000000`0625bac8 00007ff9`3c8a1118 ntdll!ZwWaitForSingleObject+0xa

      00000000`0625bad0 00000000`53be895d KERNELBASE!WaitForSingleObjectEx+0x94

      00000000`0625bb70 00000000`53b6cf6d jvm!JVM_FindSignal+0x2d7d

      00000000`0625bba0 00000000`53b8cf67 jvm!JVM_GetThreadStateNames+0x7ef8d

      00000000`0625bca0 00000000`53a64f27 jvm!JVM_GetThreadStateNames+0x9ef87

      00000000`0625bce0 00000000`53a65375 jvm!JVM_GetManagementExt+0xf0d47

      00000000`0625bdf0 00000000`53a109ee jvm!JVM_GetManagementExt+0xf1195

      00000000`0625be60 00000000`53a122e0 jvm!JVM_GetManagementExt+0x9c80e

      00000000`0625bee0 00000000`53a13b5d jvm!JVM_GetManagementExt+0x9e100

      00000000`0625bf80 00000000`53a0c086 jvm!JVM_GetManagementExt+0x9f97d

      00000000`0625c020 00000000`1228008c jvm!JVM_GetManagementExt+0x97ea6

      00000000`0625c1c0 00000000`00000000 0x1228008c

      00000000`05f1ad78 00000000`00000020 0x20004cbc

      00000000`05f1ad80 00000000`d5a62330 0x20

      00000000`05f1ad88 00000000`d5a62348 0xd5a62330

      00000000`05f1ad90 00000000`d5a62330 0xd5a62348

      00000000`05f1ad98 00000000`05f1ad98 0xd5a62330

      00000000`05f1ada0 00000000`00000000 0x5f1ad98