Re: Statistics Plugin for ActiveMQ broker

2013-09-27 Thread Christian Posta
Inline... On Fri, Sep 27, 2013 at 7:47 AM, Steven Turner wrote: > Hey Christian, > > I have some questions regarding StatisticsBroker -- > 1. We are calculating subscriber stats in the class, Why not publisher > Stats > ? > Not sure I understand this.. > 2. Can you please tell me the overhead

Re: Statistics Plugin for ActiveMQ broker

2013-09-27 Thread Steven Turner
Hey Christian, I have some questions regarding StatisticsBroker -- 1. We are calculating subscriber stats in the class, Why not publisher Stats ? 2. Can you please tell me the overhead for collecting stats, would it have big impact on performance of ActiveMQ. 3. Is StatisticsBroker class thread s

Re: Statistics Plugin for ActiveMQ broker

2013-09-26 Thread Christian Posta
Yah, you could patch org.apache.activemq.plugin.StatisticsBroker w/ debug or trace logging messages. Then open a jira and submit your patch and we can include it in trunk. On Thu, Sep 26, 2013 at 7:13 AM, johnbing wrote: > Thanks Christian for the links. However currently I am thinking to write

Re: Statistics Plugin for ActiveMQ broker

2013-09-26 Thread johnbing
Thanks Christian for the links. However currently I am thinking to write my own broker plugging using StatisticsBroker and instead of sending the stats, I will dump those stats into the log file. So is this a correct way to do this ? Any suggestions from your side. Thanks, John -- View this

Re: Statistics Plugin for ActiveMQ broker

2013-09-26 Thread Christian Posta
Yes, if camel is deployed alongside the broker, it runs in the same JVM. You should check out some of the example configs that ship with ActiveMQ... you'll see an tag (example... conf/activemq-demo.xml) With camel you can have a route like this: from(timer:statsLogger?period=1000).inOut().to("ac

Re: Statistics Plugin for ActiveMQ broker

2013-09-26 Thread johnbing
Hey, Currently I am not using camel with my broker. After your last post I read about camel, but got stuck with some questions. -- Is camel uses same PID as of ActiveMQ broker ? I want to log all stats into the same ActiveMQ log file. -- I am not able to understand how camel can be used to extra

Re: Statistics Plugin for ActiveMQ broker

2013-09-25 Thread Christian Posta
Could easily deploy a camel route w/ the broker and have it retrieve stats and log to the activemq log file. On Wed, Sep 25, 2013 at 4:49 AM, johnbing wrote: > I think StatisticsBrokerPlugin class can be used for this purpose. To > retrieve stats on the broker send a empty message to > ActiveMQ

Re: Statistics Plugin for ActiveMQ broker

2013-09-25 Thread johnbing
I think StatisticsBrokerPlugin class can be used for this purpose. To retrieve stats on the broker send a empty message to ActiveMQ.Statistics.Broker (Queue or Topic) with a replyTo set to the destination you want the stats returned to. But using this I am not sure you can log stats into the log