IBM Support

Error while creating JVM, Error -4 when loading large models in IBM Rational Rhapsody

Question & Answer


Question

Why loading large models sometimes gives "Error while creating JVM, Error -4" error

Cause

The error code -4 here means "not enough memory".

The error with JVM occurs when IBM Rational Rhapsody tries to load JVM for enabling some java plug-ins. Usually JVM requires continual memory chunks in the process and probably there is no such chunk after loading a large model which results in the error.

Answer

Loading JVM before loading a large model resolves the issue.

To instruct rhapsody to load JVM before opening the model, use the command "-cmd=loadjvm" with Rhapsody.exe. In other words, the string "-cmd=loadjvm" can be appended to the Target line. Target line can be seen by right clicking the Rhapsody Shortcut Icon on the desktop.

So the target line would consist a value which looks like:


Rhapsody.exe path -cmd=loadjvm  

where Rhapsody.exe path would be the physical path of the Rhapsody executable.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21419665