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.
In WAS web console in left side in navigation menu, click on “Server -> Server Types -> webSphere application servers”
Then click on the server your chose, in my there is only one server1
In there under Server Infrastructure click on “Java and Process Management -> Process definition”
In there under Additional Properties click on “Java Virtual Machine”
Here you can set Initial heap size and similarly Maximum heap size in MB(megabyte). And click on apply.
Then click on the save button to save the setting. Then restart the server and enjoy.
Subscribe to this blog via RSS.
Java 14
Python 2
Ops 3
Shared 3
Angular 1
Web 1
Java (14) Python (2) Wordpress (1) Ops (3) Angular (1) Web (1)