IBM Support

StackOverflowException occurs when application's Java VM stack size is not sufficient

Troubleshooting


Problem

StackOverflowException occurs when application's Java VM stack size is not sufficient.

Symptom

Application throws StackOverflowException.

Cause

Application's Java VM stack size is not sufficient. Application throws StackOverflowException

Resolving The Problem

When running a Rational modeling product, if a StackOverflowException occurs, try to increase the Java VM stack size.

To increase the Java VM stack size for the application, complete the following steps:

  1. Change directory to the product <install_dir> directory, for example C:\Program Files\IBM\SDP75 (note: not SDP75Shared).
  2. Open the eclipse.ini file.
  3. Insert the following argument after -vmargs: -Xss2048k
  4. Restart the application.

Note:
  1. In general, the default Java VM stack size for the application is sufficient, so far, only very few users (with very large models) have come across this problem.
  2. Provide a reasonable size for Java VM stack. Setting it too large might cause performance degradation. -Xss2048k is a good number to start with.
  3. Size can be specified in kilobytes or megabytes, for example -Xss[size]k or -Xss[size]m.
  4. If increasing Java VM stack size doesn't fix the problem, then it is a problem with the actual code (such as infinite recursion calls etc.).

[{"Product":{"code":"SSCLKU","label":"Rational Software Modeler"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.0.0.4;7.0.5;7.0.5.1;7.0.5.2;7.0.5.3;7.5;7.5.1;7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.10;7.0.0.4;7.0.0.5;7.0.0.6;7.0.0.7;7.0.0.8;7.0.0.9;8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSJP3D","label":"Rational Systems Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.4;7.0.5;7.0.5.1;7.0.5.2;7.0.5.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4;8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}},{"Product":{"code":"SS4JE2","label":"Rational Software Architect Standard Edition"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SS5JSH","label":"Rational Software Architect RealTime Edition"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.5.2;7.5.3;7.5.4;7.5.5;7.5.5.1;7.5.5.2;7.5.5.3;7.5.5.4;8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
10 September 2020

UID

swg21327130