Consultor Eletrônico



Kbase P109126: How to set the JVMARGS in Release 10?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/15/2008
Status: Verified

GOAL:

How to set the JVMARGS in Release 10?

GOAL:

How to adjust JVM memory heap size in OE 10?

FACT(s) (Environment):

OpenEdge 10.x

FIX:

JVMARGS in release 10.x are set in the AdminServerPlugins.properties file and also in ubroker.properties file
JVMARGS may be set the same for all processes started by the AdminServer using [PluginPolicy.Progress.AdminServer] section or each process may be tailored differently in their separate control area.
jvmArgs can also be set in ubroker.properties file under specific broker definition, this setting in ubroker.properties file will over write any settings in AdminServerPlugins.properties .
Following are two examples.
1. This example sets the JVMARGS maximum memory limit to 256m for all AdminServer processes unless it is overridden by the individual process setting:
#
# Policy for core Progress
#
[PluginPolicy.Progress]
pluginclasspath=!{value-of:classpath}
classpath=C:\OpenEdge10B\DLC/jre/i18n.jar,C:\OpenEdge10B\DLC\jdk/lib/tools.jar,C:\OpenEdge10B\DLC/java/progress.jar
[PluginPolicy.Progress.AdminServer]
pluginclasspath=!{value-of:classpath}
classpath=C:\OpenEdge10B\DLC/java/ext/jmxri.jar,C:\OpenEdge10B\DLC/java/ext/mgmt_agent.jar,C:\OpenEdge10B\DLC/java/ext/mgmt_client.jar,C:\OpenEdge10B\DLC/java/ext/mgmt_config.jar,C:\OpenEdge10B\DLC/java/ext/sonic_Client.jar,C:\OpenEdge10B\DLC/java/progress.jar,C:\OpenEdge10B\DLC/java/osmetrics.jar,C:\OpenEdge10B\DLC/java/jdbc.jar
jvmargs=-Xmx256m -Djava.awt.headless=true -Xbootclasspath/a:C:\Fathom-OE10.0b\fm/jars/pja.jar
PluginPolicy.Progress.AdminServer

2. This example will over-ride the global setting in step 1, and set the amount of memory to be used by the SomicMQAdapter to 512m.
# 4GL Sonic Adapter plugin - SonicMQ adapter support
#
[Plugin.SonicMQAdapter]
dependancy=Plugin.System,Plugin.UBPropMgr
pluginpolicy=PluginPolicy.Progress.SonicMQ
uniquetype=AD
license=1048577
classname=com.progress.ubroker.tools.adapter.AdapterGuiPlugin
pluginargs=SonicMQ Adapter
jvmargs=-Xmx512m

3. This example will over-ride the global setting in step 1 for the Name Server to use a lesser amount of memory, 32m.
#
# NameServer plugin
#
[Plugin.NameServer]
dependancy=Plugin.System,Plugin.UBPropMgr
uniquetype=NS
license=4718592
classname=com.progress.ubroker.tools.NSGuiPlugin
pluginargs=NameServer
jvmargs=-Xmx32m
Setting jvmArgs in ubroker.properties file example
[UBroker.AS.asbroker1]
jvmArgs=-Xms128m -Xmx1024m