You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Andrea Zoppello <zo...@tiscali.it> on 2008/07/17 15:58:29 UTC
Chaining Drools Endpoints and Load problems???
Hi all i'm having some trouble having a process where i have a file bc
input binding componen, and then a drools endpoint.
What's very interetsing is that in my drools script i'm using jbiHelper
routeTo to send the exchange to another drools endpoint and so
on.
What is very strange is that if i've one xml file in the folder all is
ok. If i've ore than one file i'm having servicemix blocked
on jbiHelper route method on sendSync istruction.
I've not just find a solution for this, is anyone experimenting the same
situation??
The case is when in a drl file you're using jbi helper to route to
another drools endpoint, and you try to test this in load situation
where you've more than
one exchanges on the endpoints.
Any idea?? On that??
Andrea
Re: Chaining Drools Endpoints and Load problems???
Posted by Andrea Zoppello <zo...@tiscali.it>.
Hi Gert,
Probably you're right about the thread considerations,
but what i'm care about if it's right to use sendSync() as it's now in
org.apache.servicemix.drools.model.JbiHelper.
BTW the JBIHelper as it's now is mine contribution, so i'll reopen
http://issues.apache.org/activemq/browse/SM-1248
to provide a new version of jbiHelper.
Andrea
Gert Vanthienen ha scritto:
> Andrea,
>
> It looks like you might have exhausted the thread pool for the
> servicemix-drools component. If you have several exchanges flowing
> through multiple drools endpoint that all use sendSync, you might have
> ended up with a situation where all threads of the thread pool are
> waiting on sendSync to return, but none of them ever will because you
> need additional threads from the same component to handle the
> exchanges. You should be able to verify if this is the case by
> connecting to the container with a JMX console and looking at the
> state of the drools component threads.
>
> To resolve this, you can increase thread pool size by modifying
> conf/servicemix.properties or you can increase the thread pool for the
> drools component specifically by following the instructions at
> http://servicemix.apache.org/thread-pools.html. If we could avoid
> using sendSync alltogether (and use asynchronous message exchanges
> instead) that would be even better, but I'm not sure that is possible
> with the drools component.
>
> Regards,
>
> Gert
>
> Andrea Zoppello wrote:
>> Hi all i'm having some trouble having a process where i have a file
>> bc input binding componen, and then a drools endpoint.
>>
>> What's very interetsing is that in my drools script i'm using
>> jbiHelper routeTo to send the exchange to another drools endpoint and so
>> on.
>>
>> What is very strange is that if i've one xml file in the folder all
>> is ok. If i've ore than one file i'm having servicemix blocked
>> on jbiHelper route method on sendSync istruction.
>>
>> I've not just find a solution for this, is anyone experimenting the
>> same situation??
>> The case is when in a drl file you're using jbi helper to route to
>> another drools endpoint, and you try to test this in load situation
>> where you've more than
>> one exchanges on the endpoints.
>>
>> Any idea?? On that??
>>
>> Andrea
>>
>
>
Re: Chaining Drools Endpoints and Load problems???
Posted by Andrea Zoppello <zo...@tiscali.it>.
Hi,
I've reopened SM-1248 where there's a new code for JBIHelper.route().
If you take the patch in SM-1248 you don't need to modify the thread
pool size of the
drools component.
Andrea
sachin2008 ha scritto:
> Can you please let me know how to change the threadpool size of an individual
> component in jboss.
>
> We can change in servicemix-jboss deployer by overriding the JBIService.
>
> Whether we can change the threadpool size in the SU level itself.
>
> Gert Vanthienen wrote:
>
>> Andrea,
>>
>> It looks like you might have exhausted the thread pool for the
>> servicemix-drools component. If you have several exchanges flowing
>> through multiple drools endpoint that all use sendSync, you might have
>> ended up with a situation where all threads of the thread pool are
>> waiting on sendSync to return, but none of them ever will because you
>> need additional threads from the same component to handle the
>> exchanges. You should be able to verify if this is the case by
>> connecting to the container with a JMX console and looking at the state
>> of the drools component threads.
>>
>> To resolve this, you can increase thread pool size by modifying
>> conf/servicemix.properties or you can increase the thread pool for the
>> drools component specifically by following the instructions at
>> http://servicemix.apache.org/thread-pools.html. If we could avoid using
>> sendSync alltogether (and use asynchronous message exchanges instead)
>> that would be even better, but I'm not sure that is possible with the
>> drools component.
>>
>> Regards,
>>
>> Gert
>>
>> Andrea Zoppello wrote:
>>
>>> Hi all i'm having some trouble having a process where i have a file bc
>>> input binding componen, and then a drools endpoint.
>>>
>>> What's very interetsing is that in my drools script i'm using
>>> jbiHelper routeTo to send the exchange to another drools endpoint and so
>>> on.
>>>
>>> What is very strange is that if i've one xml file in the folder all is
>>> ok. If i've ore than one file i'm having servicemix blocked
>>> on jbiHelper route method on sendSync istruction.
>>>
>>> I've not just find a solution for this, is anyone experimenting the
>>> same situation??
>>> The case is when in a drl file you're using jbi helper to route to
>>> another drools endpoint, and you try to test this in load situation
>>> where you've more than
>>> one exchanges on the endpoints.
>>>
>>> Any idea?? On that??
>>>
>>> Andrea
>>>
>>>
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://www.anova.be
>>
>>
>
>
> -----
> Cheers
> Praveen Oruganti
> "Think before you act and act on what you believe"
>
Re: Chaining Drools Endpoints and Load problems???
Posted by sachin2008 <es...@gmail.com>.
Can you please let me know how to change the threadpool size of an individual
component in jboss.
We can change in servicemix-jboss deployer by overriding the JBIService.
Whether we can change the threadpool size in the SU level itself.
Gert Vanthienen wrote:
>
> Andrea,
>
> It looks like you might have exhausted the thread pool for the
> servicemix-drools component. If you have several exchanges flowing
> through multiple drools endpoint that all use sendSync, you might have
> ended up with a situation where all threads of the thread pool are
> waiting on sendSync to return, but none of them ever will because you
> need additional threads from the same component to handle the
> exchanges. You should be able to verify if this is the case by
> connecting to the container with a JMX console and looking at the state
> of the drools component threads.
>
> To resolve this, you can increase thread pool size by modifying
> conf/servicemix.properties or you can increase the thread pool for the
> drools component specifically by following the instructions at
> http://servicemix.apache.org/thread-pools.html. If we could avoid using
> sendSync alltogether (and use asynchronous message exchanges instead)
> that would be even better, but I'm not sure that is possible with the
> drools component.
>
> Regards,
>
> Gert
>
> Andrea Zoppello wrote:
>> Hi all i'm having some trouble having a process where i have a file bc
>> input binding componen, and then a drools endpoint.
>>
>> What's very interetsing is that in my drools script i'm using
>> jbiHelper routeTo to send the exchange to another drools endpoint and so
>> on.
>>
>> What is very strange is that if i've one xml file in the folder all is
>> ok. If i've ore than one file i'm having servicemix blocked
>> on jbiHelper route method on sendSync istruction.
>>
>> I've not just find a solution for this, is anyone experimenting the
>> same situation??
>> The case is when in a drl file you're using jbi helper to route to
>> another drools endpoint, and you try to test this in load situation
>> where you've more than
>> one exchanges on the endpoints.
>>
>> Any idea?? On that??
>>
>> Andrea
>>
>
>
>
> -----
> ---
> Gert Vanthienen
> http://www.anova.be
>
-----
Cheers
Praveen Oruganti
"Think before you act and act on what you believe"
--
View this message in context: http://www.nabble.com/Chaining-Drools-Endpoints-and-Load-problems----tp18509005p18582707.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Chaining Drools Endpoints and Load problems???
Posted by Gert Vanthienen <ge...@skynet.be>.
Andrea,
It looks like you might have exhausted the thread pool for the
servicemix-drools component. If you have several exchanges flowing
through multiple drools endpoint that all use sendSync, you might have
ended up with a situation where all threads of the thread pool are
waiting on sendSync to return, but none of them ever will because you
need additional threads from the same component to handle the
exchanges. You should be able to verify if this is the case by
connecting to the container with a JMX console and looking at the state
of the drools component threads.
To resolve this, you can increase thread pool size by modifying
conf/servicemix.properties or you can increase the thread pool for the
drools component specifically by following the instructions at
http://servicemix.apache.org/thread-pools.html. If we could avoid using
sendSync alltogether (and use asynchronous message exchanges instead)
that would be even better, but I'm not sure that is possible with the
drools component.
Regards,
Gert
Andrea Zoppello wrote:
> Hi all i'm having some trouble having a process where i have a file bc
> input binding componen, and then a drools endpoint.
>
> What's very interetsing is that in my drools script i'm using
> jbiHelper routeTo to send the exchange to another drools endpoint and so
> on.
>
> What is very strange is that if i've one xml file in the folder all is
> ok. If i've ore than one file i'm having servicemix blocked
> on jbiHelper route method on sendSync istruction.
>
> I've not just find a solution for this, is anyone experimenting the
> same situation??
> The case is when in a drl file you're using jbi helper to route to
> another drools endpoint, and you try to test this in load situation
> where you've more than
> one exchanges on the endpoints.
>
> Any idea?? On that??
>
> Andrea
>