Consultor Eletrônico



Kbase P79525: How do I modify Java heap size for Progress 9 ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   20/05/2009
Status: Verified

GOAL:

How do I modify Java heap size for Progress 9 ?

GOAL:

How do I turn on additional JVM startup parameters for 9.1x on windows?

GOAL:

How do I turn on additional JVM startup parameters for 9.1x on UNIX?

GOAL:

How to address java.lang.OutOfMemoryError in the AdminServer log file ?

FACT(s) (Environment):

Progress 9.1x
All Supported Operating Systems

FIX:

Sometimes when JVM is running out of heap space, JVM startup parameters mx and ms need to be increased. In Java 1.4 and above, these parameters changed to -Xmx and -Xms.

-ms<size> or -Xms<size> set initial Java heap size
-mx<size> or -Xmx<size> set maximum Java heap size

In order to change default values for these parameters,

On a windows environment JVMARGS are set in the registry:

1. Start REGEDIT (it is always advisable to backup the registry before making changes)
2. Select HKEY_LOCAL_MACHINE\SOFTWARE\PSC\PROGRESS\<Progress-version>\JAVA
3. Select JVMARGS in the right hand screen:
4. Either add or adjust the maximum heap size:
-Xmx<size> is used for Java versions 1.4 and newer,
-mx<size> is used for Java versions before 1.4.
Example:
-mx256m -ms128m (or -Xmx256m -Xms128m for Java 1.4 and above)
5. Restart the Adminserver

For unix environment JVMARGS are set in $DLC/bin/java_env

1. Locate the section that supports the OS in use.
2. Either add or adjust the maximum heap size:
-Xmx<size> is used for Java versions 1.4 and newer,
-mx<size> is used for Java versions before 1.4.
Example:
"AIX") # IBM UNIX we ship No jdk, jre
THREADS_FLAG=native
JVMARGS="-mx256m -ms128m ${JVMARGS}" (or -Xmx256m -Xms128m for Java 1.4 and above)
3. Restart the Adminserver


To set the java heap for individual ubrokers (this setting will overide the above settings):
1. Edit the DLC/bin/properties/ubroker.properties file
2. Under the relevant [Adapter] entry, eg [UBroker.AS.asbroker1]
JVMARGS="-ms128m -mx256m ${JVMARGS}"
4. Restart the Adminserver

For OpenEdge 10 please refer to Solution P99089, "How to increase or modify java heap size for the Admin Server in OpenEdge ?"