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.

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

In WAS web console in left side in navigation menu, click on “Server -> Server Types -> webSphere application servers”

Click On Circled link

Then click on the server your chose, in my there is only one server1

Click On Circled link

In there under Server Infrastructure click on “Java and Process Management -> Process definition”

Click On Circled link

In there under Additional Properties click on “Java Virtual Machine”

Click On Circled link

Here you can set Initial heap size and similarly Maximum heap size in MB(megabyte). And click on apply.

Click On Circled link

Then click on the save button to save the setting. Then restart the server and enjoy.

Click On Circled link

Share :

Subscribe & Social

Subscribe to this blog via RSS.

Recent Posts


Java 14

Python 2

Wordpress 1

Ops 3

Shared 3

Angular 1

Web 1

Popular Tags

Java (14) Python (2) Wordpress (1) Ops (3) Angular (1) Web (1)


DGStack is web blog by digvijay bhakuni. This blog is about computer programming tips and trick. And some short tutorial and gettings started post about the framework, libriay, api and much more. The blog target mostly open source stuff like java, j2ee, nodeJs, angularJs, spring, struts, mongodb, mean, etc


This website claims no credit for any images posted on this site unless otherwise noted. Images on this blog are copyright to its respectful owners. If there is an image appearing on this blog that belongs to you and do not wish for it appear on this site, please E-mail with a link to said image and it will be promptly removed. And the information is best of my knowledge one can always write comment or mail regarding information is this blog.