I am not able to open the Administrative console of websphere application server v8.5. The logs report Java Heap Space and Out of Memory errors. I have searched online and the suggestions are to increase the JVM heap size. But how should I accomplish that now, when even the admin console is not working for me ?
Is there a method to free up the heap space somehow ?
OutOfMemoryError: Java heap space. 1) An easy way to solve OutOfMemoryError in java is to increase the maximum heap size by using JVM options "-Xmx512M", this will immediately solve your OutOfMemoryError.
Search for a file named server.xml in your WebSphere installation. Generally, the location of this file is as follows:
<profilehome>/config/cells/<cellname>/nodes/<nodename>/servers/<servername>/server.xml
Select the server.xml
specific to your server and edit it to add/modify/delete the attributes initialHeapSize and maximumHeapSize of the element <jvmEntries>
. The value of these attributes is the heap size in MB.
For example:
<jvmEntries ... initialHeapSize="2048" maximumHeapSize="3072" ...>
...
</jvmEntries>
Then restart the server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With