DevTest - Garbage Collector Settings

Document ID : KB000112719
Last Modified Date : 31/08/2018
Show Technical Document Details
Introduction:
If increasing the memory does not solve an out or memory issue or a performance problem, changing to a high performance garbage collector may solve the problem.
Environment:
All supported DevTest environments.
Instructions:
These settings can apply to any DevTest component.
However, the most common components are Registry, VSE and Portal.

These changes will be made in the .vmoptions for the specific component.
Example: 
For the Registry, make the changes in both the Registry.vmoptions and the RegistryService.vmoptions files.
Note: Making the change in both vmoptions files is recommended.

If the total memory for the DevTest component is 4 GB or less, add these properties:
-XX:+UseConcMarkSweepGC 
-XX:+CMSIncrementalMode 
-XX:+CMSIncrementalPacing 
-XX:MaxGCPauseMillis=500 

If the total memory for the DevTest component is greater than 4 GB, add these properties:
XX:+UseG1GC 
-XX:MaxGCPauseMillis=200 

After making the change, the DevTest component must be restarted.
Additional Information:
Not applicable.