My Oracle Support Banner

Java Application Error "java.lang.OutOfMemoryError: Requested array size exceeds VM limit" (Doc ID 2884079.1)

Last updated on NOVEMBER 07, 2022

Applies to:

Java SE JDK and JRE - Version 8 and later
Information in this document applies to any platform.

Symptoms

A Java application may see the below error when loading a String or other array type, such as when downloading a String from an external source. 
 

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.