Thursday, November 22, 2012

How to increase Websphere JVM memory size without using administrative console.

JVM memory size can be increased easily using Websphere administrative console. But if server gives “out of memory Error” error when we are trying to start the server, then we need to perform following steps :-
1)    Go to location “<WAS_Home>/profiles/appsvr01/config/cells/serverNode01Cell/nodes/serverNode01/servers/server1”.  Here WAS_Home is location where websphere application server is installed.
2)    Then look for server.xml file at above mentioned location.
3)    In server.xml file find “jvmEntries” xml element.
Change initialHeapSize=”512” and add maximumHeapSize=”1526” attribute.
initialHeapSize and maximumHeapSize attributes can be modified according to your system configuration.
Now you can save the file and try starting the server, you are all set to go.

No comments:

Post a Comment