My Oracle Support Banner

Java Out of Memory Error When Configuring ORDS (Doc ID 2624581.1)

Last updated on MAY 27, 2022

Applies to:

Oracle REST Data Services - Version 17.4 to 21.4.3
Information in this document applies to any platform.


 A new version of ORDS has been downloaded from Oracle. When running the configuration command:
java -jar ords.war

The following error stack is seen after entering the configuration directory location:
This Oracle REST Data Services instance has not yet been configured.
Please complete the following prompts

Enter the location to store configuration data: <DIR>
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.dbtools.jarcl.Entrypoint.invoke(
at oracle.dbtools.jarcl.Entrypoint.main(
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at java.nio.channels.Channels$WritableByteChannelImpl.write(Unknown Source)
at oracle.dbtools.common.util.IOStreamsProvider.copy(
at oracle.dbtools.common.util.IOStreamsProvider.copy(
at oracle.dbtools.common.util.StreamCopy.drain(
at oracle.dbtools.cmdline.ModifyConfigDir.modified(
at oracle.dbtools.cmdline.ModifyConfigDir.modify(
at oracle.dbtools.cmdline.Commands.configurationContext(
at oracle.dbtools.cmdline.Commands.prepareApplicationContext(
at oracle.dbtools.cmdline.Commands.main(
... 6 more

The following commands do not fail:

java -jar ords.war version
java -jar ords.war configdir


 Configuring a new version on an existing machine. Previous versions were configured successfully.


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

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