Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question My process crash with a "Java heap space" error

  • Nicolas Verscheure
  • Nicolas Verscheure's Avatar Topic Author
  • Offline
More
24 Nov 2014 09:40 #1 by Nicolas Verscheure
My process crash with a "Java heap space" error was created by Nicolas Verscheure
If your process crashes with "Java heap space" error, your Runtime experiences a lack of memory :


com.indy.engine.common.exceptions.EngineExceptionI: Unknown java.lang.error working with the engine, contact your supplier
 at com.indy.engine.action.common.ActionCodeTypeI.executeCode(SourceFile:1275)
 at com.indy.engine.action.common.ActionCodeTypeI.run(SourceFile:1323)
 at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.OutOfMemoryError: Java heap space
 at oracle.jdbc.driver.OracleStatement.prepareAccessors(OracleStatement.java:819)
 at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:972)
 at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:463)
 at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1051)
 at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1184)
 at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
 at com.indy.engine.actionCodes.SqlFileExportActionCodeI.executeSimpleCode(SourceFile:807)
 at com.indy.engine.action.common.ActionCodeTypeI.executeCode(SourceFile:1249)
 ... 2 more

You can try to increase the STAMBIA_MAX_MEMORY in initvariables script :

set STAMBIA_INIT_MEMORY=32m
set STAMBIA_MAX_MEMORY=512m
set STAMBIA_STACK_SIZE=256k

But sometimes, that won't be enough. You'll have to check the operations done in your process. Seek for the SQL operations and maybe reduce the fetch batch size parameter. It can also happens if you handle a huge XML file. In that case, you probably need to increase the STAMBIA_STACK_SIZE parameter.
  • Nicolas Verscheure
  • Nicolas Verscheure's Avatar Topic Author
  • Offline
More
19 Dec 2014 16:16 - 16 Feb 2015 10:20 #2 by Nicolas Verscheure
Replied by Nicolas Verscheure on topic My process crash with a "Java heap space" error
To have more informations, consult this KB entry .
Last edit: 16 Feb 2015 10:20 by Thomas BLETON. Reason: (edit: changed link url to reflect new article id)
More
07 Dec 2015 16:21 #3 by Josserand BRINON
Replied by Josserand BRINON on topic My process crash with a "Java heap space" error
Thanks for these informations.

I still have a question about the 3 memory parameters (in initvariables script), with the local runtime.
When I restart Stambia after modifying the initvariables file to increase values, this file is reinitialized, and new values are erased by default ones.

How can I keep permanently those new values?
More
08 Dec 2015 15:27 #4 by Thomas BLETON
Replied by Thomas BLETON on topic My process crash with a "Java heap space" error
Hi,
Indeed, each time the Designer restarts, the local Runtime's files are reset by default.
Simply add the file path to the stambiaRuntime/properties/protection.rules and it will no longer be reset.
More
08 Dec 2015 16:28 #5 by Josserand BRINON
Replied by Josserand BRINON on topic My process crash with a "Java heap space" error
It works! Thanks ;)