diaries, triumphs, failures, and rants
- All
- Animals
- Books
- Chess
- Cigars and the Man-Grill
- Collaboration
- Doctor Who
- General
- Internet
- iPhone
- Java
- LDAP
- mac
- oneLiners
- onThisDay
- slamd
- Star Trek
- Sun
- Travel
OpenDS and JVM args
From the OpenDS Java args Wiki page:
The correct way to specify JVM arguments for OpenDS to use at start-up is to use the environment variable OPENDS_JAVA_ARGS for JVM parameters, and OPENDS_JAVA_HOME to specify the JVM version. In the <OpenDS-root>/config/java.properties file, set overwrite-java-home to false to force the JVM to use the environment variable, or true to use the default.java-home property in the java.properties file. Similarly, set overwrite-java-args to true to use the OPENDS_JAVA_ARGS environment variable, and false to use the default.java-args property in the java.properties file.
Which method to use, environment variables or the java.properties file, is entirely specified by the requirements and use cases of the client software using the OpenDS installation. In general, using the java.properties file is best because some operating environments may not support environment variables. Unset the environment variables if using java.properties.Then run OpenDS-root/bin/dsjavaproperties.
Below is the relevant section of java.properties file set to use properties from that file:
overwrite-env-java-args=true
default.java-home=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
default.java-args=-Xms2g -Xmx2g -XX:+AggressiveOpts -XX:+UseParallelGC -XX:ParallelGCThreads=2
Posted at 06:00AM May 01, 2009 by tgardner in OpenDS |
Friday May 01, 2009