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 Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21419665