Salesforce

How to Tune JVM Memory Parameters (Magic xpi 4.14)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How to Tune JVM Memory Parameters (Magic xpi 4.14)

The Java Virtual Machine (JVM) manages the memory by setting aside a specific size of the heap memory to store the newly allocated objects. All the referenced objects remain active in the heap and keep that memory occupied until their reference is closed.

You can tweak the value of the following parameters and tune them as per the application's memory and load requirements.

· -Xms initial heap size

· -Xmx maximum heap size

Setting a low maximum heap size compared to the amount of live data decreases performance by forcing frequent garbage collections.

An out of memory error in Java formally known as java.lang.OutOfMemoryError occurs when the JVM uses more memory exceeding the (-Xmx) maximum Java heap size and cannot allocate an object in the Java heap memory. In this case, you need to tune the -Xmx parameter (in the Magic.ini file) that specifies the maximum size of the memory allocation pool.

The values mentioned in these pages should be in accordance with the available RAM on the system.

For more information, click here.

Reference
Attachment 
Attachment