After migrating Spectrum from Windows to Linux the OneClick WebApp does not finish loading
search cancel

After migrating Spectrum from Windows to Linux the OneClick WebApp does not finish loading

book

Article ID: 397968

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

In the UAT environment the OneClick WebApp is working fine.

But in the production environment the OneClick WebApp does not finish loading.

In the $SPECROOT/webtomcat/bin/logs/webswing.log file:

2025-05-18 16:39:15,438 ERROR [https-jsse-nio-8443-exec-13] (AbstractSwingProcess.java:340) Failed to send event [launch] to application process oneclickwebapp_anonym_265a1dee5560_1747543155389
java.io.IOException: Failed to write to application's input stream. The application oneclickwebapp_anonym_265a1dee5560_1747543155389 may not be responding.

Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.io.IOException: Stream closed

Environment

DX NetOps Spectrum 23.3.9

Cause

While increasing the WebApp Client Memory Allocation in the $SPECROOT/webtomcat/webswing/webswing.config file from 1024 to 2048, a typo was introduced in the "vmArgs" section which lead to this problem.

Resolution

Add the missing "m" character. Edit the $SPECROOT/webtomcat/webswing/webswing.config file and change:

From:

"vmArgs" : "-Xmx2048 -Djavaws.cfg.jauthenticator=true -DbrowserIp=${clientIp} -Dsun.awt.noerasebackground=true -Dwebswing.swingSystemSelectionEnabled=false -Duser.timezone=${clientTimeZone} -Dtomcat.server.xml=${SPECROOT}/tomcat/conf/server.xml",

To:

"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",

Then stop/start the WebTomcat service.

For your reference:

https://knowledge.broadcom.com/external/article?articleNumber=192748