[rules-users] Loading facts and memory size limits

Greg Barton greg_barton at yahoo.com
Wed Sep 8 12:39:20 EDT 2010


Considering that just an Object array of 10 million Objects consumes 115MB of memory, I think loading 1 billion facts will be stretching the limits of the VM all by itself. (and that's java.lang.Object with no fields...)

GreG

On Sep 8, 2010, at 10:31, bellios <carfid at gmail.com> wrote:


Hi all,
i have read the Documentation and the Drools book. I am developping an
application but i don't understand in my case how i can loading  a
1,000,000,000 facts (approx). 
At present I load all facts into a StatefulKnowledgeSession with a for-
cycle and I insert them into ksession ("ksession.insert(customer);")

The problem is the out of memory exception due the high memory 
requirements of facts.
How i can resolve it? There is another approach to 
facts loading into session? Can i integrate the loading with JPA/Hibernate 
frameworks?

Thanks in advance for any suggestion,
David

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Loading-facts-and-memory-size-limits-tp1440236p1440236.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



      



More information about the rules-users mailing list