[rules-users] Drools 5.5 : Problems with big rules file (~1.5Meg)

Nicolas Héron nicolas.heron.java at gmail.com
Mon Sep 16 09:25:07 EDT 2013


Hi,
Are you using listeners ? if yes you should unregister them from the
working memory and apply the dispose method to be sure all memory is
..disposed !
Your file may be big but as binary, you package may not be so big and it
depends also of how many objects you inserted in the working memory
(StatefullKnowledgeSessions).
Also, I guess your are using jdk 64 bits ? Then you can use more memory
then just 1.5 GB.
Your error message is strange. Does it work if you keep all rules but
reduce the number of // sessions ?
You should give us more info.
Cheers
Nicolas


2013/9/16 peter.kutzner [via Drools] <
ml-node+s46999n4025974h27 at n3.nabble.com>

> Hi community
>
> I have actually some problems to work with my rules file (.drl).
> It is about 1.5Meg (~2500 rules)
>
> After creating multiple sessions (3 to 9; StatefulKnowledgeSessions) i get
> an exception.
>
> Usually '... java.lang.RuntimeException: cannot invoke method: update ...'
> or directly and '....evaluate(Unknown Source) ...) is thrown.
>
> After reducing the rules file size to less than 500k it works without any
> exceptions.
>
> Using:
> Drools 5.5
> Win7 X64 / 16G Ram
>
> Does anyone have similar problems ?
> Are there any known memory problems within Drools 5.5 ?
> Or is my rules file unusually big ?
>
> T.i.a.
> Peter
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://drools.46999.n3.nabble.com/Drools-5-5-Problems-with-big-rules-file-1-5Meg-tp4025974.html
>  To start a new topic under Drools: User forum, email
> ml-node+s46999n47000h33 at n3.nabble.com
> To unsubscribe from Drools, click here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=46999&code=bmljb2xhcy5oZXJvbi5qYXZhQGdtYWlsLmNvbXw0Njk5OXwxMzk3MTU0MDQw>
> .
> NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




-----
Nicolas Héron
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-5-5-Problems-with-big-rules-file-1-5Meg-tp4025974p4025980.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130916/7cfc409a/attachment-0001.html 


More information about the rules-users mailing list