Re: [jgroups-dev] Incomming queue monitoring

Bela Ban <[email protected]> Sun, 27 Apr 2014 17:47:48 +0200
Newsgroups gmane.comp.java.javagroups.devel
Message-ID <[email protected]>
This is difficult and involves looking at
- thread pools (number of active threads) and their queues
- flow control will slow down propagating messages up if a sender is too 
fast
- protocols which enforce ordering might temporarily queue messages too, 
if they're out of sequence

I'd suggest look at the regular thread pool - depending on how it is 
configured - and possibly queue all received messages in your app before 
processing them. Depending on the queue size, you might then create more 
processing threads or kill some

On 27/04/14 15:29, Lev wrote:
> Hi,
> How I can monitor incoming messages queue size and use this data within my
> Application?
> Basically I want to create the new instance of Receiver as per channel load
> (e.g. one Receiver instance per 10 waiting messages).
>
> Thanks You,
> Lev.
>
> --
> View this message in context: http://jgroups.1086181.n5.nabble.com/Incomming-queue-monitoring-tp10160.html


-- 
Bela Ban, JGroups lead (http://www.jgroups.org)

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Javagroups-development mailing list