Error during upgrade: Initial heap size set to a larger value than the maximum heap size

Document ID : KB000100400
Last Modified Date : 06/06/2018
Show Technical Document Details
Issue:
Error during upgrade: Initial heap size set to a larger value than the maximum heap size
 
I am getting error during upgrade:
 [exec] [exec] Error occurred during initialization of VM
[exec] [exec] Initial heap size set to a larger value than the maximum heap size
[exec] [exec] ERROR: Upgrade failed for tenant
Cause:
This Java error indicates that the initial JVM heap (-Xms) was larger than the (-Xmx)
 
Resolution:
 
  1. Open the properties.xml and make sure that -Xms is smaller than -Xmx for the services
  2. If a memory.properties file is used in $cappm/config, open it and make sure that the lines are qualified:
 
defaultScriptMaxMem=2560m
defaultScriptPermGenMem=512m
 
 
If you're missing the 'm' at the end, the value will be in bytes and this will make it smaller maximum value than the initial heap.
 
After fixing the values, retry the upgrade.