Configure webapp client memory after upgrade to DX NetOps Spectrum 25.x
search cancel

Configure webapp client memory after upgrade to DX NetOps Spectrum 25.x

book

Article ID: 415726

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

You have upgraded to DX NetOps Spectrum 25.x and want to configure webapp client memory allocation but it has changed from the previous version. 

The $SPECROOT/webtomcat/webswing/webswing.config no longer contains reference to the "vmArgs" where it used to be configured and there is no option to configure it from the WebSwing administrator GUI.

Environment

DX NetOps 25.4.1 and greater

Cause

The location and file name containing the "vmArgs" needed to configure the client memory has changed in 25.4.1

Resolution

On the Oneclick server,  edit

 $SPECROOT/webtomcat/bin/webswing-app.config

search for the "vmArgs" section

Change: -Xmx1024m  -TO-  -Xmx2048m (or higher if needed) 

  "vmArgs" : "-Xmx2048m -Djavaws.cfg.jauthenticator=true -DbrowserIp=${clientIp} -Dsun.awt.noerasebackground=true -Dwebswing.swingSystemSelectionEnabled=false -Duser.timezone=${clientTimeZone} -Dtomcat.server.xml=${SPECROOT}/tomcat/conf/server.xml --add-opens=java.base/javax.crypto=ALL-UNNAMED",


Restart Webtomcat
   cd $SPECROOT/webtomcat/bin
   ./stopWebTomcat.sh
   ./startWebTomcat.sh