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
This Java error indicates that the initial JVM heap (-Xms) was larger than the (-Xmx)
- Open the properties.xml and make sure that -Xms is smaller than -Xmx for the services
- If a memory.properties file is used in $cappm/config, open it and make sure that the lines are qualified:
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.