You can update your OpenDJ 2.6.0 configuration to use Java 1.7 in a few easy steps, gaining the benefits of greater reliability and better performance in the process.
This assumes you’re running on a Linux server. In my case Red Hat/CentOS.
Here are the steps:
1. Update Java on the server.
yum install java-1.7.0-openjdk yum install java-1.7.0-openjdk-devel
If Java 1.7 is already installed you’d do a “yum update”.
2. Edit $DSHOME/config/java.properties as the OpenDJ directory owner to make these changes:
start-ds.java-args=-server -Xms2G -Xmx2G -Dcom.sun.management.rmxremote
The first makes the directory server’s JAVA_HOME point to the system’s default JDK, which after the update in #1 above should be Java 1.7.0. The second restates what I consider to be relatively reasonable resource limits and enables the hook needed to get JVM statistics locally via a tool like jconsole.
3. Update the server’s java properties by running dsjavaproperties as the OpenDJ directory owner:
4. Stop and then start the directory server as its owner: