Exit Print View

Sun OpenDS Standard Edition 2.0 Administration Guide

Get PDF Book Print View
 

Document Information

Configuring the Directory Server

Configuring Security in the Directory Server

Managing Directory Data

Controlling Access To Data

Replicating Data

Managing Users and Groups

Directory Server Monitoring

Improving Performance

Tuning Performance

General Performance Tuning

Java Virtual Machine Settings

Directory Server Configuration

Improving Performance When Importing Large Data Sets

Data Import Overview

Adjusting Import Parameters

To Adjust the Number of Import Threads

To Adjust the Queue Size

Adjusting Memory Requirements to Match Configuration Settings

Advanced Administration

Adjusting Memory Requirements to Match Configuration Settings

To calculate how much memory you need, take the import buffer size, add 10 percent for database dedicated memory, and add 10 percent to avoid hitting out-of-memory errors. For example, if you set the buffer size to 2 Gbytes, add 256 Mbytes for the database and another 256 Mbytes to avoid out-of-memory errors.

When you have calculated the memory requirement, perform the following steps:

  1. Edit the java.properties file and set the following values:

    overwrite-env-java-args=true
    import-ldif.offline.java-args=-Xms2560M -Xmx2560M
  2. Run the dsjavaproperties command:

    $ bin/dsjavaproperties

Note - Running the dsjavaproperties command, or setting the OPENDS_JAVA_ARGS environment variable, only has a performance impact if the import is offline. If the server is already running and you perform an online import, changing the Java arguments has no impact on the import performance because the import is performed by the server JVM.