Feedback
Did this article resolve your question/issue?

   

Article

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
Last Modified Date11/29/2018 2:21 PM
Attachment 
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.