Salesforce

How do I modify Java heap size for Progress 9 ?

Information

 
TitleHow do I modify Java heap size for Progress 9 ?
URL NameP79525
Article Number000147968
EnvironmentProduct: Progress
Version: 9.x
OS: All supported platforms
Question/Problem Description
How do I modify Java heap size for Progress 9 ?
How do I turn on additional JVM startup parameters for 9.1x on windows?
How do I turn on additional JVM startup parameters for 9.1x on UNIX?
How to address java.lang.OutOfMemoryError in the AdminServer log file ?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
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 ?"
Workaround
Notes
Keyword Phrase
Last Modified Date11/29/2018 2:21 PM

Powered by