java.lang.OutOfMemoryError: requested array is larger than heap

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by cjaikara, 4 months ago
via Oracle Community by 807573, 1 year ago
via GitHub by TempoTurtle
, 1 year ago
Requeste d array size exceeds VM limit
via GitHub by evildecay
, 1 year ago
Requested array size exceeds VM limit
java.lang.OutOfMemoryError: requested array is larger than heap
at java.util.ArrayList.(ArrayList.java:112)
at org.jgroups.protocols.TP.readMessageList(TP.java:1167)
at org.jgroups.protocols.TP.access$500(TP.java:52)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Users with the same issue

Once, 8 months ago
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.