Changing the heap size for BMC Server Automation components

You can change the heap size for the Application Server, the Application Server Launcher, and other BMC Server Automation components as described in the following sections.

To change the heap size for the Application Server

You can set or change the heap size for the Application Server using the MaxHeapSize setting from the BMC Server Automation Console or in the blasadmin utility. 

 Click here to review recommendations for the Application Server maximum Java heap size (MaxHeapSize).

This section describes recommended Java heap sizes for Application Servers running under different operating systems. These are recommendations only and must be adjusted in light of observed conditions, especially out-of-memory errors.

  • For 32-bit processes, BMC recommends operating system-specific Java heap size values according to the table below. Due to memory constraints, job servers using 32-bit processes should be configured to use no more than 50 work item threads.
  • For 64-bit processes, BMC recommends that the Java heap size be increased as indicated in the table, if there is sufficient physical memory to support this setting.

The following table provides details about the relevant blasadmin setting:

Module

Setting

Description and Recommendation

AppServer

MaxHeapSize

Specifies the maximum heap size for this Application Server.
See operating system-specific recommendations for this value summarized in the table below.

  

Windows:

  • 32-bit: 1024 MB
  • 64-bit: 6-8 GB
  

Linux:

  • 32-bit: 1536 MB
  • 64-bit: 6-8 GB
  

Solaris:

  • 32-bit: 2048
  • 64-bit: Not applicable

When specifying a value

To specify a value, use the standard Java notation (or example: 1 G or 225 M). Note that this setting is shown as Maximum JVM Memory when view the configuration details of an Application Server in the Infrastructure Management window, and is displayed there in bytes. However, you can use GB or M when specifying the MaxHeapSize setting. 

From the BMC Server Automation Console

  1. In the BMC Server Automation Console, from the Configuration menu, select Infrastructure Management.
  2. Expand the hierarchy of the Application Servers node.
  3. Right-click the Application Server you want to edit and select Edit. The Edit Application Server Profile dialog box opens.
  4. In the Edit Application Server Profile dialog box, change the values for the MaxHeapSize attribute.

Using the Application Server Administration console (blasadmin utility)

To change the heap size for the Application Server using the blasadmin utility, perform the following steps:

  1. Start the Application Server Administration console, as described in Starting the Application Server Administration console.
  2. Enter the following command:
    set AppServer MaxHeapSize <heapSize>
    For example:
    set AppServer MaxHeapSize 1024M

To change the heap size for the Application Server Launcher

You can also change the heap size for the Application Server Launcher. In a multi-Application Server environment, Application Servers inherit the heap size value from the Application Server Launcher, by default.
To change the heap size for the Application Server Launcher, perform the following steps according to your environment.

  • On Windows platforms, update the registry key HKEY_LOCAL_MACHINE\SOFTWARE\BladeLogic\Operations Manager\Application Server\option1
  • For UNIX and Linux platforms, modify the following line in the blappserv script, which is located in the .../usr/nsh/brdirectory:

    $JAVA_HOME/bin/java -Xss2m -Xmx512M -Djava.io.tmpdir=$BLADELOGIC_HOME/tmp.......

    where -Xmx512M specifies a max heap size of 512 Mb. Changing the value to -Xmx1G, for example, specifies a max heap size of 1 GB.

To change the heap size for other BMC Server Automation components

To change the heap size for other BMC Server Automation components, you modify the configuration script or file for the component.
For example, to change the heap size for the blasadmin utility on Windows, you modify the blasadmin.cfg file. To change the heap size for the BMC Server Automation Console on UNIX or Linux, you modify the blclient script.

  • For Windows platforms, modify the corresponding configuration (.cfg ) file in the br directory. By default, the configuration files are located in C:\Program Files\BMC Software\Bladelogic\NSH\br. In the configuration file, the format for setting the max heap size is jvm.arg=-Xmx1024M.
  • For UNIX and Linux platforms, modify the following line in the corresponding script, which is located in the .../usr/nsh/br directory:
$JAVA_HOME/bin/java -Xss2m -Xmx512M -Djava.io.tmpdir=$BLADELOGIC_HOME/tmp.......

where -Xmx512M specifies a max heap size of 512 Mb. Changing the value to -Xmx1G, for example, specifies a max heap size of 1 GB.

Was this page helpful? Yes No Submitting... Thank you

Comments