Welcome Guest! Log in

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
Nicolas Verscheure created the topic: My process crash with a "Java heap space" error
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.

Please Log in or Create an account to join the conversation.

  • Nicolas Verscheure
  • Nicolas Verscheure's Avatar Topic Author
  • Offline
More
19 Dec 2014 16:16 - 16 Feb 2015 10:20 #2 by Nicolas Verscheure
Nicolas Verscheure replied the 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)

Please Log in or Create an account to join the conversation.

More
07 Dec 2015 16:21 #3 by Josserand BRINON
Josserand BRINON replied the 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?

Please Log in or Create an account to join the conversation.

More
08 Dec 2015 15:27 #4 by Thomas BLETON
Thomas BLETON replied the 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.

Please Log in or Create an account to join the conversation.

More
08 Dec 2015 16:28 #5 by Josserand BRINON
Josserand BRINON replied the topic: My process crash with a "Java heap space" error
It works! Thanks ;)

Please Log in or Create an account to join the conversation.