1 Reply Latest reply: Feb 14, 2013 11:39 AM by Greybird-Oracle RSS

    Java Cannot Get Lock for je.info

    990953
      Hi,

      I am working on a system that creates a large amount of data to be persisted in BDB JE (5.0.58) concurrently.

      After the system runs for some time, the following exceptions are thrown. I was told to update the permission to access the relevant path. However, the permission to access the path and file is sufficiently high. I guess the issue must be due to the concurrency of writing?

      Could you please help me on this? Thanks so much!

      Best wishes,
      greatfree

      [java] Exception in thread "pool-3-thread-25" com.sleepycat.je.EnvironmentFailureException: (JE 5.0.58) Problem creating output files in: /home/libing/GreatFreeLabs/TestBed/NodeRankDB/Fashion/je.info UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
      [java]      at com.sleepycat.je.EnvironmentFailureException.unexpectedException(EnvironmentFailureException.java:316)
      [java]      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1387)
      [java]      at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:441)
      [java]      at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:381)
      [java]      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:180)
      [java]      at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:246)
      [java]      at com.sleepycat.je.Environment.<init>(Environment.java:227)
      [java]      at com.sleepycat.je.Environment.<init>(Environment.java:170)
      [java]      at com.greatfree.accessories.NodeRankDBEnv.Setup(NodeRankDBEnv.java:37)
      [java]      at com.greatfree.accessories.NodeRankDBEnv.<init>(NodeRankDBEnv.java:19)
      [java]      at com.greatfree.accessories.NodeRankTopGroupDB.Init(NodeRankTopGroupDB.java:47)
      [java]      at com.greatfree.accessories.NodeRankTopGroupDBPool.GetDB(NodeRankTopGroupDBPool.java:54)
      [java]      at com.greatfree.accessories.PersistNodeTopGroupNodeRanksInDBThread.<init>(PersistNodeTopGroupNodeRanksInDBThread.java:23)
      [java]      at com.greatfree.accessories.LimitPreTopGroupNodeRanker.PersistNodeTopGroupNodeRanks(LimitPreTopGroupNodeRanker.java:196)
      [java]      at com.greatfree.accessories.LimitPreRankNodeInTopGroupViewThread.run(LimitPreRankNodeInTopGroupViewThread.java:55)
      [java]      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      [java]      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      [java]      at java.lang.Thread.run(Thread.java:662)
      [java] Caused by: java.io.IOException: Couldn't get lock for /home/libing/GreatFreeLabs/TestBed/NodeRankDB/Fashion/je.info
      [java]      at java.util.logging.FileHandler.openFiles(FileHandler.java:372)
      [java]      at java.util.logging.FileHandler.<init>(FileHandler.java:346)
      [java]      at com.sleepycat.je.util.FileHandler.<init>(FileHandler.java:85)
      [java]      at com.sleepycat.je.dbi.EnvironmentImpl.initFileHandler(EnvironmentImpl.java:1381)
      [java]      ... 16 more
        • 1. Re: Java Cannot Get Lock for je.info
          Greybird-Oracle
          [java] Caused by: java.io.IOException: Couldn't get lock for /home/libing/GreatFreeLabs/TestBed/NodeRankDB/Fashion/je.info
          This file is opened to log trace information, as part of the java.util.logging framework. The fact that the open fails is probably the same issue you had earlier. Please increase the maximum number of open files allowed by your OS and try again. For most server applications, the number of open files allowed should be set to a very large number or unlimited -- this is a very common procedure.

          --mark