6443N/A<?
xml version="1.0" encoding="UTF-8"?>
6443N/A ! This work is licensed under the Creative Commons 6443N/A ! Attribution-NonCommercial-NoDerivs 3.0 Unported License. 6443N/A ! To view a copy of this license, visit 6443N/A ! or send a letter to Creative Commons, 444 Castro Street, 6443N/A ! Suite 900, Mountain View, California, 94041, USA. 6443N/A ! You can also obtain a copy of the license at 6443N/A ! See the License for the specific language governing permissions 6443N/A ! and limitations under the License. 6443N/A ! If applicable, add the following below this CCPL HEADER, with the fields 6443N/A ! enclosed by brackets "[]" replaced with your own identifying information: 6443N/A ! Portions Copyright [yyyy] [name of copyright owner] 6443N/A ! Copyright 2011 ForgeRock AS 6443N/A<
chapter xml:
id='chap-jvm-opts' 6443N/A version='5.0' xml:
lang='en' 6443N/A <
title>Tuning JVM Options</
title>
6443N/A <
para>By default, OpenDJ installs with options appropriate for evaluation, not
6443N/A <
indexterm><
primary>Java</
primary><
secondary>Settings</
secondary></
indexterm>
6443N/A <
para>You can change JVM options for the server in the QuickStart installer,
6443N/A and alternatively using the Control Panel (Runtime Options > Java Settings),
6443N/A or with the <
command>dsjavaproperties</
command> command after editing the
6443N/A <
para>The JVM heap size by default is either 256 MB or 1 GB.</
para>
6443N/A <
para>In production, use at least a 2 GB heap (-Xms2G -Xmx2G).</
para>
6443N/A <
term>Server optimizations</
term>
6443N/A <
para>Use -server to select the HotSpot Server VM.</
para>
6443N/A <
term>32-bit vs. 64-bit</
term>
6443N/A <
para>For heap sizes over 4 GB on 64-bit systems use -d64.</
para>
6443N/A <
term>Garbage collection</
term>
6443N/A <
para>Use -XX:+UseConcMarkSweepGC to select the CMS garbage collector
6443N/A for low GC pause times.</
para>
6443N/A <
term>New generation size</
term>
6443N/A <
para>If your directory handles high throughput, set the new generation
6443N/A size large enough for the JVM to avoid promoting short-lived objects
6443N/A into the old gen space (-XX:NewSize=512M).</
para>