How to workaround java.lang.OutOfMemoryError (Doc ID 358294.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Lite - Version 10.2.0.1.0 and later
Information in this document applies to any platform.

***Checked for relevance on 03-Mar-2014***


Symptoms

You find that you have java out of memory in various logs or while Synchronizing.  Err.log, MGP.log, Global.log, MGP Compose.log.

You can verify the error in the Mobile Manager> Data Synchronization > Trace Files > err.log or view the err.log on the operating system.

java.lang.OutOfMemoryError
at oracle.jdbc.driver.OracleSql.handleODBC(OracleSql.java(Compiled Code))
at oracle.jdbc.driver.OracleSql.parse(OracleSql.java(Inlined Compiled Code))
at oracle.jdbc.driver.OracleConnection.nativeSQL(OracleConnection.java(Inlined Compiled Code))
at oracle.jdbc.driver.OracleStatement.expandSqlEscapes(OracleStatement.java(Inlined CompiledCode))
at oracle.jdbc.driver.OracleStatement.parseSqlKind(OracleStatement.java(Inlined Compiled Code))
at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java(Compiled Code))
at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java(InlinedCompiled Code))
at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java(CompiledCode))
at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java(Compiled Code))
at oracle.lite.sync.JupConnection.prepareStatement(Unknown Source)
at oracle.lite.sync.Subscription.prepStatement(Unknown Source)
at oracle.lite.sync.Subscription.prepStatementLogged(Unknown Source)
at oracle.lite.sync.MyCompose.doCompose(Unknown Source)
at oracle.lite.sync.SharedCompose.doCompose(Unknown Source)
at oracle.lite.sync.Consolidator$O8Server.fastPush(Unknown Source)
at oracle.lite.sync.MGP$MGPG.run(Unknown Source)
at java.lang.Thread.run(Thread.java(Compiled Code))


clog: MGPG.run: MANDATORY: ALL: Client 0008535 will retry Compose phase null:
Exception: java.lang.OutOfMemoryError null
java.lang.OutOfMemoryError
at java.lang.StringBuffer.append(StringBuffer.java(Compiled Code))
at oracle.lite.sync.MyCompose.doCompose(Unknown Source)
at oracle.lite.sync.SharedCompose.doCompose(Unknown Source)
at oracle.lite.sync.Consolidator$O8Server.fastPush(Unknown Source)
at oracle.lite.sync.MGP$MGPG.run(Unknown Source)
at java.lang.Thread.run(Thread.java(Compiled Code))
clog: MGPG.run: MANDATORY: ALL: Client 0006670 will retry Compose phase null:
Exception: java.lang.OutOfMemoryError null
java.lang.OutOfMemoryError
at java.lang.String.<init>(String.java(Compiled Code))

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms