Customer found when they configured their memory settings in the setenv.sh file in Alfresco 5.2.2, the settings were being overridden by the ctl.sh file. I was able to confirm this in my own out of the box 5.2.2 installation on CentOS 7.
[Steps to Reproduce]
- On out of the box install, edit the /tomcat/bin/setenv.sh file to set the xmx value to 4096. Default was 2048.
- Save and start Alfresco.
- Login to the Admin Console and confirm Maximum Memory (GB) shows 0.98 on the System Summary page.
- Download JMX Dump and find that there are two Xmx settings one of 1024 and one of 4096.
Value should be 4096 when viewing the Admin Console Maximum Memory value in the System Summary page and only one value for Xmx setting of 4096 when viewing the JVM settings in JMX Dump.
The wrong value is shown in Admin Console System Summary page (see Image1.png). Two values for Xmx set in JMX Dump (see Image2.png).