Troubleshooting
Problem
A Microsoft Visual C++ Runtime Library error occurs when using IBM® Rational® XDE™ for Java™ integrated with IBM Websphere® Studio Application Developer version 5.1.2.
Cause
During development, large numbers of projects may be created and this may affect the performance of XDE. When building a project or reverse engineering an EJB, a Visual C++ error can occur. The Microsoft Visual C++ Runtime Library error message is similar to:
| Runtime Error! Program <...o\Application Developer\v5.1.1\eclipse\jre\bin\javaw.exe> This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. |
Resolving The Problem
A workaround to this problem is to increase the minimum and maximum heap size of the JVM. To do so:
- Go to C:\Program Files\Rational\XDE\eclipse
- Open the file xde.ini
- In the file, you will see the following entry
- run = "C:\Program Files\IBM\WebSphere Studio\\eclipse\eclipse.exe" -vm "C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin\javaw.exe" -data "C:\temp\XDE Workspace" -feature com.rational.xde -perspectivecom.rational.hshell.ratltool.ratlLayout -vmargs -DRCSI_SUPPORT_LOG=rational_support.log - Next to the command -vmargs, add the following command: "-Xmx512m -Xms150m" where
- "-Xmx512m" - refers to a maximum heap size of 512 MB
- "-Xms150m" - refers to a minimum heap size of 150 MB
The resulting line will be:
"C:\Program Files\IBM\WebSphere Studio\\eclipse\eclipse.exe" -vm
"C:\Program Files\IBM\WebSphere Studio\eclipse\jre\bin\javaw.exe" -data
"C:\temp\XDE Workspace" -feature com.rational.xde
-perspectivecom.rational.hshell.ratltool.ratlLayout -vmargs Xm512m
-Xms150m -DRCSI_SUPPORT_LOG=rational_support.log - Save the xde.ini file
- Restart XDE
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21208166