adcfgclone java.lang.OutOfMemoryError: Java heap space

Environment: 
Oracle EBS R12.2.5 
Oracle Linux 7

Issue:
When running adcfgclone on appstier with dualfs option below error occurred at a stage of weblogic EBS_DOMAIN creation,

Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:2694)
at java.lang.String.<init>(String.java:203)
at java.io.BufferedReader.readLine(BufferedReader.java:349)
at java.io.BufferedReader.readLine(BufferedReader.java:382)
at com.oracle.cie.common.util.CRLF.readData(CRLF.java:129)
at com.oracle.cie.common.util.CRLF.processFile(CRLF.java:67)


Solution:
we tried defining the variable value like in below combinations but the issue persists. 

export CONFIG_JVM_ARGS="-Xms512m -Xmx1024m"
MEM_ARGS="-Xms512m -Xmx1024m -XX:+UseParalle lGC"
MEM_ARGS="-Xms512m -Xmx1024m"
export CONFIG_JVM_ARGS="-Xms1024m -Xmx2048m"

Later it was identified to be abnormal growth of a file in $EBS_DOMAIN_HOME. File -- aferror.log consumed more space (size was around 4GB)

After moving that file, completed pre-clone in source.
Taken fresh backup and this time cloning was successful in appsTier. 

Oracle 18c


Oracle Database 18c, its now available in Oracle Cloud and on Engineered System. 

It is expected to be a core component in Autonomous Database Cloud Services. It has new functionality and improvements to existing 12c features like Multitenant, Sharding, In-memory. 




Snapshot Carousel: Defining regular snapshots of PDBs that can then be used for a full PITR clone. It is ideally suited to development environments.

Refreshable PDB Switchover: PDB, incrementally updated copy of a master PDB, that may subsequently be switched over between each other, i.e. master PDB becomes the clone and the old clone the master. This enables to gracefully switch workloads between different CDBs.

Oracle In-Memory: Managing column store content can now be automated, i.e. database automatically takes care of populating objects into the IM column store and removing those that are no longer relevant. Optimizer routes analytic and transactional queries to column and row format respectively, the IM column store is extended to flash on Exadata storage (both on-premises and Oracle Cloud) to hold enlarging columnar formatted data. 

Distributed Realtime Analytics: Maintaining an IM column store on an Active Data Guard standby database running on Oracle Cloud and Oracle Exadata, making more productive use of standby databases and delivers high performance analytics.

MemOptimized RowStore: Designed for fast query performance that require very fast and low latency lookups based on primary key values. Attribute, MEMOPTIMIZE FOR READ, is used to indicate which tables are to be pinned into the buffer cache with this new hash index.

Oracle Clusterware 18c: Enhances new deployment options introduced in Oracle 12cR2 called Oracle Cluster Domain, . Oracle 18c allows both new installations to be deployed as a Cluster Domain model while allowing standalone Clusters to be converted to Member Clusters.



Oracle Domain Services Cluster provides centralized services to other clusters within the Oracle Cluster Domain. These services include:
  • A centralized Grid Infrastructure Management Repository 
  • Trace File Analyzer(TFA), for diagnostic data collection 
  • Consolidated Oracle ASM storage management service
  • Rapid Home Provisioning (RHP) Service to install clusters, and provision, patch, and upgrade Oracle Grid Infrastructure and Oracle Database homes.

Oracle ASM 18c: Enhances the database-oriented storage management using new ASM Flex Disk Group. It Includes,
  • Modifiable redundancy at individual database file level 
  • Snapshot capabilities 
  • Quota management at the database level for consolidated environments.