Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

BDB JE 7.3.7 and Azul Zulu.

904507Apr 26 2017 — edited Jun 1 2017

Hi,

I was trying to use BDB JE 7.3.7 with Azul Zulu (based on OpenJDK) and it fails to start with the following error message :

The database environment could not be opened: java.lang.IllegalStateException: Could not access Zing management bean. Make sure -XX:+UseZingMXBeans was specified.

Looking at the code, in src/com/sleepycat/je/utilint/JVMSystemUtils.java, I see that the Zing JVM is detected uniquely based on the java.vendor property. But Azul Systems now produces 2 JVMs.

A possible solution is to change the code has below:

--- a/src/com/sleepycat/je/utilint/JVMSystemUtils.java

+++ b/src/com/sleepycat/je/utilint/JVMSystemUtils.java

@@ -22,7 +22,8 @@ import java.util.List;

public class JVMSystemUtils {

     public static final boolean ZING_JVM =

-        "Azul Systems, Inc.".equals(System.getProperty("java.vendor"));

+        "Azul Systems, Inc.".equals(System.getProperty("java.vendor")) &&

+        !System.getProperty("java.runtime.name").startsWith("OpenJDK");

     /**

      * Zing will bump the heap up to 1 GB if -Xmx is smaller.

Alternately, you could check that the java.runtime.name property contains the string "zing" (although I don't know the exact string for the Zing runtime name).

Thanks.

Ludo

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 29 2017
Added on Apr 26 2017
2 comments
1,260 views