[rules-users] Does Drools Fusion consume a lot of memory?
Wolfgang Laun
wolfgang.laun at gmail.com
Thu Jun 28 04:59:18 EDT 2012
Since you have everything in place: Could you please run the heap
memory test again, but now with a completely empty set of rules?
Also, please report the respective numbers of accounts, transactions
and other types (if any).
Have all the Accounts been inserted before you insert the events?
I see several potential causes for the considerable increase in heap
memory, but this might require experimenting; so I'd like to have the
answers to the preceding questions first.
-W
On 28/06/2012, chrisLi <shengtao0077 at 163.com> wrote:
> Hi, Edson and all
>
> I am making an experiment on Drools Fusion these days. I found it
> consumes a lot of memory. And the
>
> number of rules, the fields of events, the complexity of rules affect the
> memory usage.
>
> The flow of my experiment is as follow:
>
> 1. I have two tables, one for Transaction, one for account. The
> transaction table have a foreign key
>
> number which is the primary key of account table.
>
> 2. In one thread, I loaded transaction data and account data into a
> ArrayBlockingQueue, whose size is 100000.
>
> 3. In another thread, I inserted the Transaction as events and the
> related account as facts into the
>
> Fusion Engine.
>
> 4. I used a java profiler tool to monitor the memory usage of the
> Fusion
> engine, and recorded the
>
> highest heap memory usage of ecah round of my experiment.
>
> Here is the results:
>
> Amount of events highest heap memory usage(MB)
> 5000 268
> 10000 470
> 15000 555
> 20000 645
> 25000 845
> 30000 958
> 35000 1011
> 40000 1127
> 45000 1331
>
> Is this the normal memory usage of Drools Fusion? Otherwise, did I make a
> mistake?
>
> See the attachments for the rules and Java Model classes . If you are
> intrested in this experiment, I can upload all codes.
>
> Thank you very much. I will appreciate for your response.
>
> http://drools.46999.n3.nabble.com/file/n4018307/Cep1.drl Cep1.drl
>
> http://drools.46999.n3.nabble.com/file/n4018307/TransactionEvent.java
> TransactionEvent.java
>
> http://drools.46999.n3.nabble.com/file/n4018307/Account.java Account.java
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Does-Drools-Fusion-consume-a-lot-of-memory-tp4018307.html
> Sent from the Drools: User forum 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