Page 1 of 1

Memory leak in running Graph multiple times (???)

Posted: Wed Jun 25, 2014 12:17 pm
by esegal
my application run Clover Graph multiple times - mainly for aggregation purpose.
As I see by JConsole the application consume more and more memory until I get:
java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(
at java.nio.DirectByteBuffer.<init>(
at java.nio.ByteBuffer.allocateDirect(
at org.jetel.graph.DirectEdge.init(
at org.jetel.graph.Edge.init(
at org.jetel.graph.Phase.init(
at org.jetel.graph.TransformationGraph.init(
at org.jetel.graph.runtime.EngineInitializer.initGraph(

When I set the JVM for enlarge the Direct buffer memory I get the same result - but after longer time.
I took dump file of the application after running a while and I see 41,040 instances of org.jetel.component.DataReader (!!!)
- Well something is malfunction here - I think I use Clover as needed - mybe I'm wrong ?
my code call EngineInitializer.initEngine() only once, and after each graph running call also:
Map<String,Node> nodes= graph.getNodes();
for (Node node : nodes.values());;

Is any one know about memory-leak in CloverETL?? or am I doing something wrong ??

Thanks in advance !

Re: Memory leak in running Graph multiple times (???)

Posted: Thu Jun 26, 2014 10:45 am
by kubosj