You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Andreas Held <hl...@bbp.ch> on 2006/07/10 14:27:35 UTC

Load handling

Hi

I have the following setup that causes intermittent problems:
- A number of file pollers that monitor a directory and send the names 
of files found to a service component (direct routing)
- A service component that dispatches the received file names to a 
processing module (via drools) and deletes the files as soon as it 
receives and ack from processing
- A processing component that spawns threads (through a WorkManager) to 
transfer files from A to B and sends an ack as soon as the transfer 
completed.
All components are implemented as POJO objects and deployed in the 
servicemix-lwcontainer.

If I sufficiently space the incoming files, then everything works fine. 
However, if too many files arrive at the same time, then ServiceMix 
freezes completely and does not recover anymore. From the first point I 
infer that my setup should be correct and JBI compliant. However, how 
can I determine whether the ESB is nearing saturation? How can I ensure 
that I never bring the bus to its limits? I tried to read through the 
JBI specs but could not find anything pertaining to the scaling of an 
ESB implementation. Maybe some kind soul can point me to the right place?

Regards

Andreas




Re: Load handling

Posted by apinke <ap...@gmail.com>.
Hi Andreas ,

I , too , am looking for the similar information...The JBI spec does not
define anything about the 
threading behavior of the JBI container.
I had posted a similar question on the forum a while ago but did not get any
response.

Is the access to the Delivery Channel synchronised? I wanted to know the
behavior when I use the
HTTPBindingComponent and multiple client make requests as the same time.
Does the component spawn multiple threads ?

Thanks
Pat
-- 
View this message in context: http://www.nabble.com/Load-handling-tf1918109.html#a5266335
Sent from the ServiceMix - User forum at Nabble.com.


Re: Load handling

Posted by AndreasH <hl...@bbp.ch>.
To add some details:

I also experimented with throttling through JMX, however, this does not
apear to change anything in my implementation. On the other hand,
implementing my own throttling, by putting the thread to sleep between
messages, works well. Still, it seems to me that there is a need to know
more about the limits of ServiceMix, in order to define the amount of
throttling. Also, the freezing of ServiceMix irritates me, as I would expect
the system to degrade gradually.

Regards

Andreas
-- 
View this message in context: http://www.nabble.com/Load-handling-tf1918109.html#a5252021
Sent from the ServiceMix - User forum at Nabble.com.