My Oracle Support Banner

Running Command Fails with "java.lang.OutOfMemoryError: Java heap space" (Doc ID 2754353.1)

Last updated on JUNE 01, 2023

Applies to:

Oracle Fusion Middleware - Version and later
Information in this document applies to any platform.


While running the T2P, the command is failing with below error in the clone log file.

clone log

Tried below options by increasing -Xmx and -Xms values but still facing the same issue.

1.Set the environment variable CONFIG_JVM_ARGS with the memory parameters for the JVM. 

export CONFIG_JVM_ARGS="-Xmx<value>m -Xms<value>m -XXMaxPermSize=<value>m"

Run the

2. Edit present at /<MIDDLEWARE_HOME>/oracle_common/common/bin/ and add CONFIG_JVM_ARGS="-Xmx<value>m -Xms<value>m -XXMaxPermSize=<value>m" after "# Set the config jvm args..."

Run the


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.