Oracle Weblogic JVM Settings

Oracle WLS JVM settings

Setting the proper JVM Heap size is essential for applications requiring large memory areas. Generally speaking, the JVM settings of the Weblogic Administration server is not a vital task as applications should not be allowed to run on the administrative unit; however, this is an acceptable option if you are using it in the development stage. On the other hand, Weblogic Managed Servers should be tuned with the right amount of memory so that your applications won’t raise “Out of memory” errors but, at the same time, no excessive amount of memory is loaded.

Administration server JVM settings

JVM size of Admin server can be increased by changing -Xmx and -Xms values in setDomainEnv.sh (setDomainEnv.cmd for Windows) that is located in MW_HOME/user_projects/domains/<Domain>/bin

Within the setDomainEnv script, before "SET JAVA_OPTIONS=....", you can specify the memory settings in the USER_MEM_ARGS variable. The format varies depending on your operating system and the kind of JVM that you are running. The following table summarizes the lines of code you should add, by providing a sample JVM configuration:

OS

JVM

Settings

 Windows 

 Sun /  HP

 set USER_MEM_ARGS=-Xms1280m -Xmx1280m -XX:PermSize=128m -XX:MaxPermSize=256m

 Windows

 JRockit

 set USER_MEM_ARGS=-Xms1280m -Xmx1280m -XnoOpt

 Unix

 Sun / HP

 USER_MEM_ARGS=-Xms1280m -Xmx1280m -XX:PermSize=128m -XX:MaxPermSize=256m

 

 export USER_MEM_ARGS

 Unix

 JRockit

 USER_MEM_ARGS=-Xms1280m -Xmx1280 –XnoOpt

 

 export USER_MEM_ARGS

Weblogic Managed server JVM settings

JVM size of Managed Servers can be configured from the Weblogic console. This can be achieved by navigating into the Environment > Servers tab. From there, select your server and click on the upper Server Start tab. The following screen will be displayed:

oracle weblogic book oracle weblogic books

Within this screen, enter the JVM arguments in the text area named “Arguments”. The new arguments will be triggered on the next server restart.

Francesco Google+