Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Heap Space Out of Memory wtih Websphere Admin Console

Tags:

java

websphere

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 ?

like image 686
n.nasa Avatar asked Aug 22 '13 09:08

n.nasa


People also ask

How do I fix Java out of memory error heap space?

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.


1 Answers

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.

like image 52
Joginder Malik Avatar answered Sep 20 '22 03:09

Joginder Malik