Heap size allocated for maximum memory can be customized, as per requirement, by configuring the Heap size.
Server Configuration
The allocation of memory for the JVM is specified using -X options when starting the server. These options can be configured in server.conf file in %FIORANO_HOME%/esb/server/bin/. Open server.conf file and change the values for –Xms and –Xmx argument under <jvm.arg> tag. Save the file and restart the server.
Component Configuration
Memory used by a component can be restricted or expanded based on the requirement. This can be done by appending appropriate Maximum Heap Size (-Xms) and Initial Heap Size (-Xmx) values with JVM_PARAMS value present in Runtime Arguments tab under Properties.
Figure 1: Example: -DLOG_TOSTREAM=true –Xms40m –Xmx128m
Reducing the maximum allocated memory helps in deploying more components, but keeping the value too low can cause out of memory errors.
Using same JVM settings in Multiple Microservice Instances
After pressing Enter to apply the changes made in JVM_PARAMS value, as described in the previous section, clicking No in Update all Service Instances dialog box applies the settings only to the presently selected Microservice Instance(s).
To apply the same settings for multiple Microservice Instances from all the Event Processes,
- Select the Update service instances from all Event Processes checkbox; the Yes button gets active.
- Click Yes; Select Service Instance dialog box appears.
- Select the Service Instances to which the same JVM settings need to be applied and press OK.
Figure 2: Updating Microservice Instances
Using same JVM settings in Multiple Environments
To use a particular JVM parameter across environments, save the configuration as 'named configuration' bu performing the following actions:
- In Configuration Repository window, right-click Runtime Arguments folder and click Add Configuration.
- In the Add New Configuration dialog box, choose the preferred environment name from the Environment drop-down.
- Provide a name for the configuration in the Name field, choose the required environment, and click Next.
Figure 3: Configuring Named Configuration In the Runtime Arguments Configuration panel, provide the required values and Java Home and click Finish to save the named configuration for the chosen environment
Figure 4: Saving Named Configuration