Increasing the Java virtual machine heap size using scripting

For some servers, it may be required to 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.

Procedure

  1. Set attributes that control the heap size for the JVM associated with the server. This can be done using the administrative console, the wsadmin tool, or a Java client.
  2. Perform one of the following to increase the heap size of the JVM:
    • 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 commands. This will generate a script for that you can use to launch the target server in the future.
    • Manually set the environment variables before starting the target server with the startServer, startManager, or startNode commands.
      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 ('[-interactive]')
      • Using Jacl:

        $AdminTask setJVMMaxHeapSize {-interactive}



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 30, 2013 10:47:11 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-iseries&topic=txml_heapsize
File name: txml_heapsize.html