IBM Support

Increasing the JVM heap size for XDE for Java

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.

This error message is a generic one. However in this context, the problem points to insufficient JVM heap size that is needed to run XDE.

Resolving The Problem

A workaround to this problem is to increase the minimum and maximum heap size of the JVM. To do so:

  1. Go to C:\Program Files\Rational\XDE\eclipse
  2. Open the file xde.ini
  3. 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
  4. Next to the command -vmargs, add the following command: "-Xmx512m -Xms150m" where
    1. "-Xmx512m" - refers to a maximum heap size of 512 MB
    2. "-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
  5. Save the xde.ini file
  6. Restart XDE

[{"Product":{"code":"SSSJ2Z","label":"Rational XDE Java"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2003.06.13;2003.06.14;2003.06.15;2003.06.16","Edition":"","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSSHYJ","label":"Rational XDE Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"for Java","Platform":[{"code":"PF033","label":"Windows"}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 June 2018

UID

swg21208166