Error Message: Java out of Memory

If a web service contains many methods, the deployment may fail due to the error "Java out of memory". To recover from this error situation, you need to change the settings for the Java Runtime Environment.

You need to edit the shortcut to Eclipse that you created upon installation of the M3 Web Services Designer:


        ECLIPSE32_INSTALL_DIR>\eclipse.exe -vmargs -Xmx768M

The argument "-vmargs" above allocates 768 MB of memory for the runtime environment. The amount of memory to allocate differs depending on your needs and the size of your available memory. You may need to experiment to find a suitable maximum heap size to allocate to match the needs for your largest web service.

You can also set the heap size in the Eclipse Preferences window.

Use this procedure to set the heap size.

  1. Navigate to Window > Preferences.
  2. On the left panel, select Java > Installed JREs.
  3. On the right panel, select the compiler, and then click Edit.

    The Edit JRE window is displayed.

  4. Specify the heap size in the Default VM Arguments input field.

    For example, if you specify -Xms250m -Xmx700m" value for the "Default VM arguments in the Default VM Arguments input field, the compiler will have a minimum heap size of 250 MB and a maximum heap size of 700 MB.

    Note: You can split the web service into two and divide the methods.
  5. Click OK.