Thursday, February 19

Increase JVM Size In WebSphere Application Server (WAS)

How to increase JVM Memory Size in WebSphere Application Server (WAS).

Server getting very slow and hanging up a lot sometime ending up by "java.lang.OutOfMemory" error frequently while deploying or republishing J2EE Web application in WebSphere Application Server.

Today, I'll telling how to set initial heap size and maximum heap size of JVM. that can solve these issues So to do so start your WAS first. then After the server has been started run the admin console from the IDE I am using IBM RSA(Rational Software Architect for WebSphere) you could be use whatever you like.
  1. Or the other way is, in your web browser open 'http://localhost:9060/ibm/console/'  9060 is the default port for WAS WebConsole.
    Open  this URL in web browser

  2. In WAS web console in left side in navigation menu, click on "Server -> Server Types -> webSphere application servers"
    Click On Circled link
  3. Then click on the server your chose, in my there is only one server1
    Click On Circled link
  4. In there under Server Infrastructure click on "Java and Process Management -> Process definition"
    Click On Circled link
  5. In there under Additional Properties click on "Java Virtual Machine"
    Click On Circled link
  6. Here you can set Initial heap size and similarly Maximum heap size in MB(megabyte). And click on apply.
    Put Initial heap size and Maximum heap size. And click on Apply.
  7. Then click on the save button to save the setting. Then restart the server and enjoy.
    Click Save to save the setting


No comments:

Post a Comment

Ads Inside Post