Update the JVM Heap Size Parameter Values for Managed Servers

For improved performance, you may need to increase the JVM heap size for all Managed Servers in a cluster.

Note:

After changing the JVM heap size, whenever there is a scale out operation, newly added nodes have default JVM heap size parameters. To update the newly added nodes with the new JVM heap size parameter values, you must follow these steps to rerun the automation script.

To update the JVM heap size parameters:

  1. Use the ssh command to connect to the Administration Server VM (as the opc user):
    ssh -i private_key opc@Admin_VM_Public_IP
  2. Change to the oracle user:
    sudo su - oracle
  3. Navigate to the directory containing automation scripts:
    cd /opt/scripts/runbooks
  4. Run the script to update the JVM heap size parameters and respond to the prompts for WebLogic Server administration password, Min JVM Heap Size, and Max JVM Heap Size:
    ./updateJVMHeapSizeParameters.sh

    Example settings:

    Min JVM Heap Size (MB): 1024

    Max JVM Heap Size (MB): 4096

  5. Restart the Managed Servers in the cluster for the updates JVM parameter values to take effect. See Stop or Start the Managed Servers.
The JVM parameters are updated in the Managed Server startup parameters, which can be reviewed in the WebLogic Server Admininstration Console on the Server Start tab in the Arguments field. See Servers : Configuration : Server Start in the WebLogic Server Admininstration Console online help.