java.lang.OutOfMemoryError: Java heap space

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 viralpatel.net by Unknown author, 1 year ago
via Stack Overflow by Sheldon Ross
, 2 years ago
Java heap space at java.util.Arrays.copyOf(Arrays.java:2271) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
via Coderanch by Thomas Boss, 11 months ago
via Atlassian JIRA by Mike Knight, 1 year ago
Java heap space
java.lang.OutOfMemoryError: Java heap space
at com.itextpdf.text.pdf.RandomAccessFileOrArray.InputStreamToArray(RandomAccessFileOrArray.java:182)
at com.itextpdf.text.pdf.RandomAccessFileOrArray.(RandomAccessFileOrArray.java:172)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:237)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:248)
at undefined.MergePDF.splitPDF(split.java:38)
at undefined.ShivaPdf.main(split.java:87)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
32 times, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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