Tuning Java memory allocation
Allocating more memory to Java often improves the performance of RICOH ProcessDirector. However, it is imperative that you take several factors into consideration before
you change this configuration.
Important: We recommend allocating no more than 50% of the available system memory on your system
to RICOH ProcessDirector Java processes. This recommendation takes into consideration the memory needs of
other parts of RICOH ProcessDirector, such as the database, transforms, custom code, and other components. The recommendation
also ensures that the operating system and other tools and utilities have the resources
they require to operate.
To tune Java memory allocation:
- Check the amount of RAM installed on your system. Divide that number by 2 and write it down.
- Check how much memory is allocated to other applications that run on this system.Reduce the number you wrote down by the amount of memory each application uses. The resulting value is the total amount of heap memory that is available for you to allocate to Java for all running RICOH ProcessDirector primary and secondary processes.
- Log in to the primary computer as the system user (aiw1 is the default).
- Open
$AIWDATA/config/jvmsettings.cfg
in a text editor.By default,$AIWDATA
is/aiw/aiw1
. - Find the line that looks like this:
primary=-Xmx2048m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true
The value after
primary=-Xmx
is the maximum amount of heap memory the RICOH ProcessDirector Java run time environment is allowed to use for the RICOH ProcessDirector primary process. In this example, the primary server can use 2048MB (2GB) of RAM for its heap. - Update the -Xmx value to the number you determined in step .For example, to allow the primary server use 8GB of heap space, you can specify -Xmx8192m or -Xmx8g
- Save and close the file.
- Restart RICOH ProcessDirector to apply the changes.