java.properties revision 6409
3019N/A# This file contains the java properties that the different command lines will
3019N/A# use when launched. You can specify the location of the java binaries to be
6331N/A# used and the java arguments to be passed to the command line. The follwoing
6331N/A# examples assumes that the Java virtual machine supports those options.
6331N/A
3019N/A# For instance you can specify to use the -server argument for the start-ds
3019N/A# command with an initial heap size of 256 Mb by setting
6409N/Astart-ds.java-args=-server -d64 -Xms256m -XX:+UseCompressedOops \
6409N/A -Duser.language=en -Duser.country=US -Djava.awt.headless=true
6331N/A# For big|production servers (NewSize ~= 2/3*Xmx)
6409N/A#start-ds.java-args=-server -d64 -Xms2G -Xmx2G -XX:NewSize=1408M \
6409N/A# -XX:MaxNewSize=1408M -XX:+UseCompressedOops -XX:+UseParNewGC \
6409N/A# -XX:+UseConcMarkSweepGC -Duser.language=en -Duser.country=US \
6409N/A# -Djava.awt.headless=true
6331N/A
3019N/A# To set the java virtual machine to be used for a given command-line you must
3019N/A# set the property <command-line-name>.java-home and to specify java arguments
3019N/A# you must set the property <command-line-name>.java-args.
3019N/A#
3019N/A# There are certain command-lines (import-ldif, export-ldif, backup, restore)
3019N/A# that can work on two modes: online and offline. When they run in online mode
3019N/A# (the server is running and the user specifies LDAP parameters to launch the
3019N/A# operation) the operation is not actually performed in the Java Virtual Machine
3019N/A# of the command-line but on the server side. This is why when launching these
3019N/A# command-lines on online-mode it is preferred to use the -client argument for
3019N/A# the java virtual machine (and even limit the maximum size of the heap).
3019N/A# However when these command-lines are launched in offline mode it is
3019N/A# recommended to use the -server argument to launch the command-line.
3019N/A# This is the reason why you can specify different java properties for both
3019N/A# modes (for instance import-ldif.offline.java-args and
3019N/A# import-ldif.online.java-args).
3019N/A#
3019N/A# IMPORTANT NOTE: Once you have modified this file and set the java properties
3019N/A# that you want the command-lines to use you must run the command-line
3019N/A# bin/dsjavaproperties for the different scripts to be updated with the
3019N/A# specified settings.
3019N/A#
3019N/A# Examples:
6331N/A
5636N/A# Specify to overwrite the content of the environment variable OPENDJ_JAVA_HOME
3019N/A# (i.e. the contents of this properties file for the java home will be analyzed
5636N/A# before checking whether OPENDJ_JAVA_HOME is specified in the environment):
6331N/A#overwrite-env-java-home=true
6331N/A
5636N/A# Specify to overwrite the content of the environment variable OPENDJ_JAVA_ARGS
3019N/A# (i.e. the contents of this properties file for the java args will be analyzed
5636N/A# before checking whether OPENDJ_JAVA_ARGS is specified in the environment):
6331N/A#overwrite-env-java-args=true
6331N/A
3019N/A# Specify to use a particular Java Virtual Machine for the offline import:
3019N/A# import-ldif.offline.java-home=/usr/jdk1.7
6331N/A
6331N/A# Specify to use -server argument when running import-ldif on server mode:
6409N/Aimport-ldif.offline.java-args=-server -d64 -Djava.awt.headless=true
6331N/A
3019N/A# Specify to use -client argument when running dsconfig:
6409N/A#dsconfig.java-args=-client -Djava.awt.headless=true
6409N/Acontrol-panel.java-args=-client
6331N/A
3019N/A# Specify to use the java home for all the command-lines that have not
3019N/A# an associated property defined:
6331N/A#default.java-home=/usr/jdk1.6
6331N/A
3019N/A# Specify to use the -client argument for all the command-lines that have not
3019N/A# an associated property defined:
6409N/Adefault.java-args=-client -Djava.awt.headless=true