Resolving Memory Issues

When you launch Oracle Communications Design Studio, the Java Virtual Machine (JVM) attempts to allocate the memory necessary to support the Design Studio (and Eclipse) application processes. If there is not enough memory available to allocate from the memory pool, the JVM displays an error message and Design Studio does not start.

Design Studio memory issues can appear erratic because the JVM requires contiguous memory for allocation (the allocation cannot consist of disparate parts of the physical memory pool). The amount of contiguous memory available to the JVM is affected by the number of processes running and the length of time the machine has been running. Even if the operating system reports that there is enough memory to support the allocation request, the allocation will fail unless the memory available is contiguous.

If you are experiencing Design Studio memory issues, make the following changes:

  • Close all other open applications.

  • Edit the maximum memory settings for the Java heap size.

    If you receive a system error stating:

    JVM Terminated.Exit code=-1

    when you attempt to launch Design Studio, it is possible that the heap space requested could not be reserved. Close Design Studio, reduce the -Xmx value, and restart Design Studio. Reduce the -Xmx value gradually to ensure that Design Studio starts with the greatest heap space possible. Oracle recommends that you begin with decrements of 50.

  • If you are using Java 1.5 and getting an OutOfMemoryError when opening Design Studio, include the following option (directly after the -Xmx setting) in the eclipse.ini file:

    -Dsun.lang.ClassLoader.allowArraySyntax=true

  • Add memory to the system.

    32-bit systems can support a maximum memory setting of approximately 1Gb, depending on current system state.

  • Use a 64-bit operating system and a 64-bit version of Design Studio.

    The maximum memory setting for these systems is much greater and can exceed the approximate limit of 1Gb on 32-bit systems. 64-bit installations can support maximums of 4Gb and higher.

See Design Studio Installation Guide for more information about defining JVM flags in Design Studio.