This article is about changing memory size used by the Spotfire server java instance.
In most cases you will not need to modify it, however if you see issues around java process running out of memory, this may help
Quoted from Spotfire server installation manual
Modify the Virtual Memory. To set up the start script when not running as a Windows service: ============================== 1). Open the file <installation dir>/tomcat/bin/setenv.bat/.sh in a text editor, such as Notepad. 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 <installation dir>/tomcat/bin directory. 3). Run the command: service.bat remove. 4). Edit the <installation dir>/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). Run the command: service.bat install. 8) Start the TIBCO Spotfire Server service. NOTE - For 32-bit Windows operating systems, spotfire generally recommend never going above 1300M for the heap size. If you set the value too high, the server will fail to start. Note that this is a Java/OS limitation - it has nothing to do with Spotfire. For 64-bit, the highest tested size is 2048M. |
Comments
Post a Comment