Documentation Center

Configuring JVM memory settings for a microservice

Allocate less or more memory than the default for your microservice by editing its application.properties file,

About this task

By default, the various microservices apply the following JVM memory settings:
Service nameInitial and minimum heap size in megabytesMaximum heap size in megabytes
Content Service5121536
Context Engine Service256512
Contextual Image Delivery256512
Content Deployer5121024
Discovery Service128256
Experience Optimization Management Service5121024
Experience Optimization Query Service5121024
IQ Combined Service256512
Preview Service256384
Session-enabled Content Service5121536

Depending on the specific microservice and on how you use it, these amounts may be too little or too much for your liking. The steps below explain how to change them.

Procedure

  1. In the configuration location of your microservice, open the file application.properties for editing.
  2. To change the initial and minimum heap size, set the value of the install.minHeap property to your desired number of megabytes, followed by a lowercase "m".
  3. To change the maximum heap size, set the value of the install.maxHeap property to your desired number of megabytes, followed by a lowercase "m".
  4. Restart the microservice.