Setting the Java heap size
As a starting point, set the Java heap size to a minimum of 16 GB for a medium environment. After upgrading, you should monitor the memory usage to ensure that Java does not run out of memory. For complete recommendations, see Hardware requirements.
Perform the following steps to set the Java heap size:
(Windows)
- Navigate to <Tomcat Install_Directory>/bin directory.
- Open the Tomcatxw.exe file.
- Navigate to Java tab and increase the Java heap size according to your system size. For information on configuration size, see the knowledge article 000232571 .
(UNIX)
- Navigate to <Tomcat Install_Directory>/bin directory.
- Edit the catalina.sh file.
Set the -Xmx parameter to increase the Java heap size:
JAVA_OPTS=%JAVA_OPTS% -Xms512m –Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:MaxMetaspaceSize=3200m
The preceding command contains sample values of heap size and perm size. You must increase the size according to your system size. For information on configuration size, see the knowledge article 000232571 .
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Changing AR Server heap size in arserver.config should be mentioned here too.
Hi Andreas,
Thank you for your feedback on the documentation. We are working on your query and will let you know the recommended way of setting the heap size.
Regards,
Himanshu
Hi Andreas,
Thank you for your comment. The steps to change the AR Server heap size in the arserver.config file is mentioned in the topic - Allocating AR System server resources.
Regards,
Himanshu
Log in or register to comment.