Thursday, March 19, 2015

Weblogic: Memory settings Xmx and Xms


Xmx - denotes the maximum memory allocation pool for JVM
Xms - denotes the minimum memory allocation pool for JVM


example:

java -Xmx1024m -Xms512m

This specifies that the JVM will be started with Xms (512 MB) and will be able to use a maximum of 1024MB

When a weblogic server is started, the memory settings are taken effect from setDomainsEnv.sh file.


Memory settings can be specified per Weblogic server in setDomainsEnv.sh -

case "$SERVER_NAME" in
        AdminServer)
                USER_MEM_ARGS="${MEASUREMENT_ARGS} -Xms2048m -Xmx3072m -XX:MaxPermSize=1024m"
                export USER_MEM_ARGS
  
        managed_server*)
                USER_MEM_ARGS="${MEASUREMENT_ARGS} -Xms2048m -Xmx4608m"
                export USER_MEM_ARGS

No comments:

Post a Comment