Topic
2 replies Latest Post - ‏2013-08-26T14:11:57Z by nilsbru
nilsbru
nilsbru
2 Posts
ACCEPTED ANSWER

Pinned topic Thread fails to release locks

‏2013-08-21T18:43:39Z |

Encountered a problem where our Java application running in a sMash environment on Linux hangs because of unreleased monitor locks.  According to the javacore file, the offending thread is holding locks on 11 different objects, yet the thread is designed to call very short-lived synchronized methods from other objects, but in a serial fashion, so it should never have more than one lock at a time.  Furthermore, the current stack trace of the thread shows it in "park" state, which is normal when it has no work to do. So, there should be no locks at all held by this thread, not the 11 we see in the javacore file.  It appears the JRE has not released locks after the thread exited from a synchronized method.

The symptom does not occur all the time, but every few days in the long-running application. The workaround is to restart the JVM.

Are there any known bugs of this nature in the IBM JRE for Linux?

JRE version, etc:

1CIJAVAVERSION JRE 1.6.0 Linux x86-32 build jvmxi3260sr10fp1-20120202_101568 (pxi3260sr10fp1-20120321_01(SR10 FP1))
1CIVMVERSION   VM build 20120202_101568
1CIJITVERSION  r9_20111107_21307ifx1
1CIGCVERSION   GC - 20120202_AA
1CIJITMODES    JIT enabled, AOT enabled, FSD disabled, HCR disabled
1CIRUNNINGAS   Running as a standalone JVM
 

Updated on 2013-08-21T18:44:06Z at 2013-08-21T18:44:06Z by nilsbru
  • ParamS
    ParamS
    5 Posts
    ACCEPTED ANSWER

    Re: Thread fails to release locks

    ‏2013-08-26T07:36:08Z  in response to nilsbru

    Can you share the javacore file?

    • nilsbru
      nilsbru
      2 Posts
      ACCEPTED ANSWER

      Re: Thread fails to release locks

      ‏2013-08-26T14:11:57Z  in response to ParamS

      No, I cannot share the javacore file in a public forum.