Search This Blog

Saturday, 19 December 2015

Tuning the Memory Arguments for WebLogic Managed server

Tuning the JVM Memory Arguments for WebLogic server instance. Here tuning means either increase or decrease the memory size of a JVM Heap or Perm Size. Remember that Heap, Perm spaces are combined to forms a Admin/managed server's MEM space.

Pr-requisites for this experiment:

  • WebLogic installed 
  • Domain Configuration
  • Admin, Managed servers Running State
There are 2 options to modify existing JVM Arguments
  1. SetDomainEnv.sh (or) .cmd
  2. Admin Console
1. Changing JVM Arguments through setDomainEnv.sh

Before changing JVM arguments from the terminal you can use jps or ps command  -Xms256m -Xmx512m

JVM arguments for AdminServer
Before changing the JVM arguments


JVM Memory size of AdminServer can be increased by changing Xmx and Xms values in setDomainEnv.sh or in the startWebLogic.sh as per the need. which are located in $MW_HOME/user_projects/domains/domain_name/bin$vi setDomainEnv.sh
JVM size of AdminServer using setDomainEnv.sh
Changing the JVM Arguments for the AdminServer from setDomainEnv.sh

Above script changed the value of Xms and Xmx of 32bit where my requirement relates to 32bit architecture OS to 512m and 1024m

These values can be determined within the performance domain where trial and error options will concludes at certain values.

After increasing JVM memory arguments restarts the AdminServer and then check the JVM arguments of the AdminServer by using the below command

ps -ef  |grep AdminServer.

Output:
Tuning theJVM memory arguments
After Increasing JVM memory arguments
2. Admin Console level MEM_ARGS sizing

Logon to WebLogic Admin Console and select the WebLgoic server instance for which you wish to modify. Except AdminServer. Lets modify for managed server managed_01
From the domain structure -> Environment -> Servers
In the work area Configuration tab select the server start tab & enter the new JVM arguments as per your project needs here for sample using :
-Xms1024m -Xmx1024m 
WebLogic 12c server instance default MEM Arguments (Before Tuning)



Change the Argument


MEM Arguments for Weblogic managed server


Now after change of the argument restart the server from the Admin console that using Nodemanger restart the server to get the changes

After Tuning the WebLogic server Memory Allocation





You can explore more on sizing Memory argument at Oracle documentation.



1 comment:

  1. Weblogic12C Essentials Certification : Tuning The Memory Arguments For Weblogic Managed Server >>>>> Download Now

    >>>>> Download Full

    Weblogic12C Essentials Certification : Tuning The Memory Arguments For Weblogic Managed Server >>>>> Download LINK

    >>>>> Download Now

    Weblogic12C Essentials Certification : Tuning The Memory Arguments For Weblogic Managed Server >>>>> Download Full

    >>>>> Download LINK U1

    ReplyDelete

WebLogic Books

  • Oracle WebLogic Server 12c: Administration Handbook
  • WebLogic Diagnostic Framework
  • Advanced WebLogic Server Automation
  • Oracle SOA Suite 11g Administrator's Handbook

Popular Posts