Changing the heap size for TrueSight Server Automation components
You can change the heap size for the Application Server, the Application Server Launcher, and other TrueSight Server Automation components as described in the following sections.
- To change the heap size for the Application Server
- To change the heap size for the Application Server Launcher
- To change the heap size for other TrueSight Server Automation components
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 TrueSight Server Automation Console or in the blasadmin utility.
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 TrueSight Server Automation Console
- In the TrueSight Server Automation Console, from the Configuration menu, select Infrastructure Management.
- Expand the hierarchy of the Application Servers node.
- Right-click the Application Server you want to edit and select Edit. The Edit Application Server Profile dialog box opens.
- 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:
- Start the Application Server Administration console, as described in Starting-the-Application-Server-Administration-console.
- 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 TrueSight Server Automation components
To change the heap size for other TrueSight 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 TrueSight 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:
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.