Friday, March 14, 2014

Increase Java Heap size for OBIEE 11g servers

In order to increase heap size for Admin Server and Managed Server (bi_server1) we need to configure it for 2 places

1.Change Heap values at setDomainEnv.sh (for Admin Server)

2.Provide Java Arguments at Console (for bi_server1)

Navigate to <MiddlewareHome>/user_projects/domains/bifoundation_domain/bin

Open setDomainEnv.sh

If you are using 64 bit Server ,then change values for

XMS_SUN_64BIT and XMX_SUN_64BIT like below

XMS_SUN_64BIT="2048"
export XMS_SUN_64BIT
XMS_SUN_32BIT="256"
export XMS_SUN_32BIT
XMX_SUN_64BIT="4096"
export XMX_SUN_64BIT
XMX_SUN_32BIT="512"
export XMX_SUN_32BIT

To increase Heap size for Managed Server (bi_server1) ,log in to Console

http://host_name:7001/console

Navigate to Servers->bi_server1->Server Start

now set  Arguments to

-Xms2048m -Xmx4096m -XX:PermSize=512m -XX:MaxPermSize=1024m

ex:

Image



 Single place change

You can change the default JVM heap size for the Administration Server and Managed Servers by setting the USER_MEM_ARGS parameter in the startup script for Oracle WebLogic Server. The following procedure sets the same values for both the Administration Server and Managed Servers.

To change the default JVM heap size:

1. Use the WebLogic Server Administration Console to shut down the servers gracefully.

2. Open the setDomainEnv.sh file (or setDomainEnv.bat on Windows systems) for editing. You can find this file in the DOMAIN_HOME/bin directory. ie C:\OBI_11117\user_projects\domains\bifoundation_domain\bin

3. Locate the IF statement for USER_MEM_ARGS and place the insertion point before that statement.

4. Set the -Xmx argument for USER_MEM_ARGS. The following list shows examples of how to set USER_MEM_ARGS for various operating systems:

UNIX shell script (.sh)
USER_MEM_ARGS="-Xms2048m -Xmx4096m -XX:CompileThreshold=8000 -xx:PermSize=512m -XX:MaxPermSize=1024m"
export USER_MEM_ARGS
Windows command script (.bat)
set USER_MEM_ARGS="-Xms2048m -Xmx4096m -XX:CompileThreshold=8000 -xx:PermSize=512m -XX:MaxPermSize=1024m"
Note:
The arguments for USER_MEM_ARGS can vary, depending on whether you are using SunVM or JRockit. For example, PermSize and MaxPerm Size apply only to SunVM and generate warnings for JRockit.

5. After setting the parameter, save and close the file, then restart the Administration Server and Managed Servers for the changes to take effect.



Additional info: Doc ID 1622182.1

No comments:

Post a Comment