Task failed java.lang.OutOfMemoryError: Java heap space

4.71K viewsJavaglassfishPayara
0

I am getting below error in the Payara server and Glassfish servers.

Task failed
java.lang.OutOfMemoryError: Java heap space
at gnu.trove.set.hash.TIntHashSet.rehash(TIntHashSet.java:410)

Please check and give the solution

Manohar Changed status to publish June 20, 2019
Add a Comment
2

Please increase the Java Heap Memory in JVM options based on application usage:

We can update in two ways:

Option1 : go to Payara-5.191\payara5\glassfish\domains\domain1\config\domain.xml
update the jvm memory

Option 2: In the server admin console, we can update.

Step 1: Login glassfish server or payara server admin console

Step 2: Click and server-config in the left menu

Step 3: Chose the JVM option and update the -Xmx memory

<jvm-options>-Xmx2014m</jvm-options>

 

Manohar Changed status to publish June 20, 2019
Add a Comment
Write your answer.