WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

how will you set JVM?

saravana kumar

saravana kumarTue May 14, 2013 11:57 AM

  • 1.  how will you set JVM?

    Posted Tue May 14, 2013 11:57 AM
    hwo to set JVM in websphere.


  • 2.  how will you set JVM?

    Posted Tue May 14, 2013 02:40 PM
    See this WAS v8.5 InfoCenter article on configuring the WAS JVM -> bit.ly/13ifsWA

    You can set JVM parameters through wsadmin or the WAS admin console


  • 3.  how will you set JVM?

    Posted Wed May 15, 2013 03:43 AM
    thank you paul.


  • 4.  how will you set JVM?

    Posted Thu May 16, 2013 05:52 AM
    Hi Saravana,

       The initial heap size and maximum heap size for a JVM can be set using wsadmin scripting. I feel wsadmin takes less time to execute and also more reliable.

       To do this, go to WAS_PROFILE_ROOT/bin and launch wsadmin.sh. Once wsadmin prompt is launched, execute the following scripts to set the JVM heap sizes.


    $AdminTask setJVMInitialHeapSize {-serverName  SERVER_NAME -nodeName  NODE_NAME -initialHeapSize 256}

    $AdminTask setJVMMaxHeapSize {-serverName  SERVER_NAME    -nodeName  NODE_NAME -maximumHeapSize 1024}

    $AdminConfig save


    where, heap size is in MB


  • 5.  how will you set JVM?

    Posted Thu May 16, 2013 11:51 PM
    thank you pavan