How to Increase WebApp Memory Allocation


Article ID: 192748


Updated On:


CA Spectrum


In larger environments, it may be necessary to increase the memory allocation to the OneClick Webapp 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 memory allocation from the default 1024m to the desired amount (ex. 2048m, 3072m ..etc)


Release : 10.x

Component : SPCOCK : Spectrum OneClick


The memory allocation for the OneClick Webapp is specified within the WebSwing configuration file webswing.config.

There are 2 ways to update the value


1. Manually

           Edit: $SPECROOT/webtomcat/webswing/webswing.config
Search for: "vmArgs"
    Change: -Xmx1024m  -TO-  -Xmx2048m (or higher if needed)

Restart Webtomcat
   cd $SPECROOT/webtomcat/bin


2. Via the WebSwing Configuration GUI

  • Access the WebSwing gui using the webtomcat port (default: 9443)


  • Login using spectrum / spectrum (this is a webswing auth not spectrum)

  • Click on 'Manage'

  • Click the 'Config' Button

  • Under 'Java - Applications' locate the 'JVM Arguments' and adjust the memory value to -Xmx2048m

  • Scroll Up and Click 'Apply' for the changes to be saved

  • Restart Webtomcat

    cd $SPECROOT/webtomcat/bin




Additional Information


Note: Each instance of the Webapp launched runs a separate java instance on the OneClick server. Make sure the
   Server has enough memory available for the webapp instances.