Showing posts with label Configuring the Java Memory Parameters on Application Servers/Weblogic. Show all posts
Showing posts with label Configuring the Java Memory Parameters on Application Servers/Weblogic. Show all posts

Monday, 19 October 2015

Configuring the Java Memory Parameters on Application Servers/ Weblogic Server

WebLogic 10.3.x on Windows

Edit the setDomainEnv.cmd file in the WebLogic domain bin folder. Make the following updates:

1. Search for WLS_MEM_ARGS_64BIT.  You should find something like this:
set WLS_MEM_ARGS_64BIT = -Xms256m -Xmx512m
Replace both occurrences with this:
set WLS_MEM_ARGS_64BIT = -Xms1024m -Xmx1024m

2. Search for WLS_MEM_ARGS_32BIT.  You should find something like this:
set WLS_MEM_ARGS_32BIT = -Xms256m -Xmx512m
Replace both occurrences with this:
set WLS_MEM_ARGS_32BIT = -Xms1024m -Xmx1024m

3. Search for MEM_PERM_SIZE_64BIT.  You should find something like this:
set MEM_PERM_SIZE_64BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_PERM_SIZE_64BIT = -XX:PermSize=256m

4. Search for MEM_PERM_SIZE_32BIT.  You should find something like this:
set MEM_PERM_SIZE_32BIT = -XX:PermSize=48m
Replace all occurrences with this:
set MEM_PERM_SIZE_32BIT = -XX:PermSize=256m

5. Search for MEM__MAX_PERM_SIZE_64BIT.  You should find something like this:
set MEM_MAX_PERM_SIZE_64BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_MAX_PERM_SIZE_64BIT = -XX:PermSize=256m

6. Search for MEM_MAX_PERM_SIZE_32BIT.  You should find something like this:
set MEM_MAX_PERM_SIZE_32BIT = -XX:PermSize=128m
Replace all occurrences with this:
set MEM_MAX_PERM_SIZE_32BIT = -XX:PermSize=256m



WebLogic 10.3.x on Linux

Edit the setDomainEnv.sh(/u01/oracle/middleware/user_projects/domains/ClassicDomain/bin) file in the WebLogic domain bin folder
.
Make the following updates:

1. Search for WLS_MEM_ARGS_64BIT. You should find something like this:
WLS_MEM_ARGS_64BIT = "-Xms256m -Xmx512m"
Replace both occurrences with this:
WLS_MEM_ARGS_64BIT = "-Xms1024m -Xmx1024m"

2. Search for WLS_MEM_ARGS_32BIT. You should find something like this:
WLS_MEM_ARGS_32BIT = "-Xms256m -Xmx512m"
Replace both occurrences with this:
WLS_MEM_ARGS_32BIT = "-Xms1024m -Xmx1024m"

3. Search for MEM_PERM_SIZE_64BIT. You should find something like this:
MEM_PERM_SIZE_64BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_PERM_SIZE_64BIT = "-XX:PermSize=256m"

4. Search for MEM_PERM_SIZE_32BIT. You should find something like this:
MEM_PERM_SIZE_32BIT = "-XX:PermSize=48m"
Replace all occurrences with this:
MEM_PERM_SIZE_32BIT = "-XX:PermSize=256m"

5. Search for MEM__MAX_PERM_SIZE_64BIT. You should find something like this:
MEM_MAX_PERM_SIZE_64BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_MAX_PERM_SIZE_64BIT = "-XX:PermSize=256m"

6. Search for MEM_MAX_PERM_SIZE_32BIT. You should find something like this:
MEM_MAX_PERM_SIZE_32BIT = "-XX:PermSize=128m"
Replace all occurrences with this:
MEM_MAX_PERM_SIZE_32BIT = "-XX:PermSize=256m"


Ref:  http://support.sas.com/documentation/cdl/en/citmblcg/64709/HTML/default/viewer.htm#n1hplivnigb4ptn1nbn5kixqja3m.htm