"Could not create JVM" error seen after upgrading Spectrum OneClick on Windows
search cancel

"Could not create JVM" error seen after upgrading Spectrum OneClick on Windows

book

Article ID: 380953

calendar_today

Updated On:

Products

DX NetOps CA Spectrum

Issue/Introduction

When trying to start tomcat from the Services, we see the following error:

 

When trying to start from a bash shell, we see the following error:

 

Checking the Windows Event Viewer, we see the following:

Environment

Version: Any running on Windows
Component: OneClick

Cause

Checking the $SPECROOT/tomcat/bin/OneClickService.conf file, we see both the Xms and Xmx parameters were set to 8M.

jvm_opt=-server
jvm_opt=-Xmx8M
jvm_opt=-Xms8M
jvm_opt=-XX:+UseG1GC

We compared that to the another OneClick system that did not have this error and it has them both parameters set to 4096M.

Xms and Xmx parameter values in the $SPECROOT/tomcat/bin/OneClickService.conf file were set to low.

Resolution

Setting both the Xmx and Xms parameters to 4096M in this instance and then restarting tomcat resolved the issue.

Additional Information

NOTE: Depending on the size of your Spectrum environment, you may need increase these values as needed.