January 5, 20215 yr Getting the dreaded: java.lang.OutOfMemoryErrorL Java heap space message again on initial sync, MS6. I know the advanced topics outline how to increase heap space on Mac and Windows - but which file do I amend to increase memory allocation with the mirrorsync installed on tomcat 8 / Linux? Thank you!!
January 5, 20215 yr Hi DataCruncher, The reason this isn't in our docs is the procedure and file you modify will depend on the version of Linux you have, what version of Tomcat you have installed and where you installed it. You essentially need to increase the memory allocated to Tomcat. It looks like your installation might be similar to our hosting environment. For us, we modify the the file at /etc/tomcat8/tomcat8.conf and edit the JAVA_OPTS settings .
January 5, 20215 yr Author Thank you! I was able to figure it out last night for RedHat: It required a setenv.sh file to be created and a restart of TomCat. Works like a charm now. Thank you.
June 28Jun 28 Newbies The java.lang.OutOfMemoryError: Java heap space error indicates that the JVM has exhausted the heap memory allocated to it. On a Linux system running Tomcat 8, the heap size is typically configured through the Tomcat startup environment.To increase the heap size, you would typically add or modify JVM arguments such as:-Xms2g -Xmx4g where, Xmx refers to the maximum heap size tool can use and -Xms refers to or stands for initial heap sizeAfter making any change, please restart the Tomcat only after which the new changes will take effect. If the initial synchronization process consistently exhausts the heap, increasing -Xmx may be an appropriate first step. To do the first step you should check if the server has sufficient physical memory available.If you wish to understand this better and get proper usage steps on how to set the heap size to your application you can refer to this blog, Sizing Your Heap Correctly: Understanding -Xms and -Xmx.
Create an account or sign in to comment