Gen Diagram Trace Utility (DTU) "java.lang.OutOfMemoryError"
search cancel

Gen Diagram Trace Utility (DTU) "java.lang.OutOfMemoryError"

book

Article ID: 26857

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset

Issue/Introduction

While tracing an application using the Gen Diagram Trace Utility (DTU) on a Windows workstation and stepping through code statements using the F5 key, receive error:

java.lang.OutOfMemoryError: Java heap space

Environment

Gen Diagram Trace Utility

Resolution

The DTU is an Eclipse based application and the 'heap space' is an Eclipse memory issue.
Adjust the vmargs (VM Arguments) parameter located in file "%Gen86%\Gen\dt\DiagramTrace.ini" file to increase the memory available.

The default settings are:
-vmargs
-Xms80M
-Xmx256M

Increase the Xms (Stack Space) and Xmx (Heap Size) values, along with the PERMSIZE and MAXPERMSIZE (Permanent Generation Heap) based on needed and available memory.
PermSize is the permanent generation heap, a heap that holds objects such as classes and methods.
MaxPermSize specifies the maximum size for the permanent generation heap.

The following is an example of increased settings:

-vmargs
-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128M