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.

Procedure

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

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

  2. Increase the heap size of the JVM.
    [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 17, 2014 10:32 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-express-iseries&topic=txml_heapsize
File name: txml_heapsize.html