Product: TIBCO Spotfire®
Tomcat Crash or Hang - OutOfMemoryError: GC Overhead limit exceeded.
Product: TIBCO Spotfire Server
Version: 3.x, 4.x, 5.x, 6.x
OS: All Supported Operating Systems
--------------------
TIBCO Spotfire Server crashes or hangs when large analysis files are accessed.
Tomcat Service stops or hangs, dump file is created.
This exception is thrown by the garbage collector in Java and is not specific to Spotfire. This error essentially means that you need to add or allocate more memory.
From server.log file:
========
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded.
========
From catalina.log file:
========
SEVERE: Exception invoking periodic operation: java.lang.OutOfMemoryError: Java heap space.
========
Modify the Virtual Memory. Set up the start script when not running as a Windows service.
==========================================================
1). Open the file /tomcat/bin/setenv.bat/.sh in a text editor.
2). Locate the line that sets the variable JAVA_OPTS:
set JAVA_OPTS=-server -XX:+DisableExplicitGC -XX:MaxPermSize=256M -Xms512M -Xmx1536M
or
JAVA_OPTS="-server -XX:+DisableExplicitGC -XX:MaxPermSize=256M -Xms512M -Xmx1536M".
3). Alter the -xms and the -Xmx values -Xms512M -Xmx1536M to the amount of memory you wish to allocate.
4). Save the file.
5). Restart the server.
To set up the start script when running as a Windows service.
=================================================
1). Stop the TIBCO Spotfire Server service.
2). Go to the /tomcat/bin directory.
3). Run the command: service.bat remove.
4). Edit the /tomcat/bin/service.bat file.
5). Look for the entries: --JvmMs 512 --JvmMx 1536 .
6). Alter 512 and/or 1536 to suitable memory values (in megabytes).
7). Launch the command prompt and run the following command: "service.bat install" by navigating to \tss\\tomcat\bin.
8) Start the TIBCO Spotfire Server service.
NOTE: For 32-bit Windows operating systems, we generally recommend never going above 1300M for the heap size. If you set the value too high, the server will fail to start. This is a Java/OS limitation and has nothing to do with Spotfire. If you are running the Tomcat Service as Service account, ensure that you update the service account after step 7 above.
Comments
0 comments
Article is closed for comments.