diaries, triumphs, failures, and rants

pageicon Friday May 01, 2009

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-home=true
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

Comments:

Post a Comment:
Comments are closed for this entry.

« December 2009
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today

Feeds

Search this blog

Links

Weblog menu

Today's referrers

Today's Page Hits: 11