Consultor Eletrônico



Kbase 20519: Sonic Adapter crashed with java.lang.OutOfMemoryError.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   30/04/2004
Status: Unverified

FACT(s) (Environment):

SonicMQ

FACT(s) (Environment):

Progress 9.1B

FACT(s) (Environment):

Progress 9.1C

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

Sonic Adapter shutdown.

java.lang.OutOfMemoryError

JVM out of memory: Adapter emergency exit. Use the JVM's -mx, -ss and -oss startup parameters to increase the memory available for the adapter. (9363)

CAUSE:

A java.lang.OutOfMemoryError error occurred because the amount of available memory for the Java process performing the task was not sufficient. The default limit is 16MB which is not always sufficient especially with large messages.

FIX:

Increase the maximum amount of memory that can be used for Progress Java Applications such as the SonicMQ Adapter.

(maximum Java heap size,-mx size)
"-mx32m" tells to the JVM that the SonicMQ Adapter has 32 Mb allocated for the JVM.


For the SonicMQ Adapter on a windows environment perform the following:

1. Start REGEDIT
2.  Select HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER, SOFTWARE, PSC, PROGRESS, 9.1X, JAVA
3  Select JVMARGS
4  Add the entry : -mx32m
5. The JVMARGS registry key should have a value of -ms8m -mx32m.
6.  Restart the Adminserver

For the SonicMQ Adapter running in a unix environment perform the following:

1.  Edit the $DLC/bin/properties/ubroker.properties file
2.  Under [Adapter], jvmArgs=$JVMARGS
3.  Change to [Adapter], JVMARGS="-ms8m -mx32m  ${JVMARGS}"
4.  Restart the Adminserver