Increasing the Java virtual machine heap size using scripting

Some servers might specify a Java virtual machine (JVM) heap size greater than the default. You can increase the heap size of the JVM using the administrative console, the wsadmin tool, or a Java client.

[AIX]

About this task

If you are using a JVM platform that is running on a 32-bit AIX® system, complete this task if the application server, deployment manager, or node agent require a greater heap size.

Procedure

  1. Set attributes that control the heap size for the JVM that is associated with the server.

    [AIX Solaris HP-UX Linux Windows][z/OS] Use the administrative console, the wsadmin tool, or a Java client to control the heap size.

    [IBM i] Use the administrative console or the wsadmin tool to control the heap size.

  2. Increase the heap size of the JVM.
    [AIX Solaris HP-UX Linux Windows][z/OS]
    • Create a script to launch the server. Use the -script option with the command that you are using to start the target server, for example, the startServer, startManager, or startNode batch or shell command utilities. This action generates a script that you can use to launch the target server.
    • Manually set the environment variables before you start the target server with the startServer, startManager, or startNode batch or shell command utilities.
      [AIX Solaris HP-UX Linux Windows][IBM i] With the following settings, you can specify a maximum heap size for the JVM of 11 multiplied by 256 megabytes:
      export IBM_JVM_LDR_CNTRL_NEW_VALUE=MAXDATA=0XB0000000@DSA
      export LDR_CNTRL=MAXDATA=0XB0000000@DSA
    • Use the AdminTask object, for example:
      • Using Jython:

        AdminTask.setJVMMaxHeapSize('-serverName server1 -nodeName node1 -maximumHeapSize heap_size')
      • Using Jacl:

        $AdminTask setJVMMaxHeapSize {-serverName server1 -nodeName node1 -maximumHeapSize heap_size}
    [IBM i] Use the AdminTask object to modify the heap size, as the following examples demonstrate:
    • Using Jython:
      AdminTask.setJVMMaxHeapSize('-serverName server1 -nodeName node1 -maximumHeapSize heap_size')
    • Using Jacl:
      $AdminTask setJVMMaxHeapSize {-serverName server1 -nodeName node1 -maximumHeapSize heap_size}
Task topic    

Terms and conditions for information centers | Feedback

Last updated: April 20, 2014 08:46 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=txml_heapsize
File name: txml_heapsize.html