In larger environments, it may be necessary to increase the memory allocation to the OneClick Webapp Client so that it will perform better and in some cases not crash due to out of memory conditions. This document will show how to increase the Spectrum WebTomcat memory allocation from the default 1024m to the desired amount (ex. 2048m, 3072m ..etc)
Release : All Supported Releases
The memory allocation for the OneClick Webapp Client is specified within the WebSwing configuration file webswing.config. Please note that we do not recommend to assign more than 4GB to the webapp client as it can have negative affects. In Linux the max memory assigned to each client is reserved when each new client logs in.
There are 2 ways to update the value
Edit: $SPECROOT/webtomcat/webswing/webswing.config
Search for: "vmArgs"
Change: -Xmx1024m -TO- -Xmx2048m (or higher if needed)
Restart Webtomcat
cd $SPECROOT/webtomcat/bin
./stopWebTomcat.sh
./startWebTomcat.sh
below we are setting 8 gb as an example.
For windows :
Go to %SPECROOT%webtomcat/bin> ./tomcat9 //US//SpectrumWebTomcat --JvmMx=8192 à Upgrades webtomcat memory to 8GB
For Linux:
Edit the $SPECROOT/webtomcat/bin/catalina.sh file and update the value -Xmx=8192 à Upgrades webtomcat memory to 8GB
Note: