Ah, looking at the precise method of accessing the Admin View more carefully,
I recommend using BrokerService.getAdminView().
As for performance, I think once per minute is fine. However, I recommend
measuring as there are many variables that play in. I would try increasing
the rate (i.e. decrea
Thanks for the suggestions.
I cannot go ahead with the other approaches you specified because of some
reasons.
So I just want to ask one more thing:
If I am using plugin to get all the stats.
than is there any other way to get stats without creating
"*ManagementContext*" and "*BrokerViewMBean*".
Ah, here's that OpenTSDBWriter:
https://github.com/donjohnson/jmxtrans/commit/3f709e34ed3260813f7fcf99605f97884978477d
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-ActiveMQ-broker-tp4676635p4677149.html
Sent from the ActiveMQ - User maili
Hey Anuj.
The "best" way depends on a lot of factors. The method you posted will
work. It's not a heavy load on the broker unless it's being called rapidly.
I recommend measuring it to be comfortable with the overhead - a tool like
jstat or a JMX client can help you get comfortable.
My recomme
Please respond
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-ActiveMQ-broker-tp4676635p4677144.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Hi,
I am trying to do periodic logging of ActiveMQ stats using plugin. I will
log all the stats per minutes.
Stats includes: enqueue count, dequeue count, dispatch count, connection
count, Producer/consumer count, Durable subscriber count and Dynamic
Destination producer count etc.
The way I am
Okay, but for what purpose? What are you trying to do with this
information?
On Friday, January 24, 2014, khandelwalanuj
wrote:
> I have a simple requirement where I want to log current number of
> connections
> established to the ActiveMQ broker.
>
>
>
>
>
> --
> View this message in context:
Thanks you for the explaination
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-ActiveMQ-broker-tp4676635p4676764.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Thanks for the clarification on the embedded broker question.
A broker filter will do the job, as you described.
On the other hand, you could have written a tool that connects to the broker
JVM via JMX and gets the counts that way, without putting custom code into
the broker JVM. Such a tool can
I have a simple requirement where I want to log current number of connections
established to the ActiveMQ broker.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-ActiveMQ-broker-tp4676635p4676752.html
Sent from the ActiveMQ - User mailing l
How about you tell us what exactly it is you are trying to accomplish?
On Friday, January 24, 2014, khandelwalanuj
wrote:
> I am not able to understand. Will you please tell me how to get connections
> from JMX ?
> Or what is wrong with my approach (It is working fine even if I am not
> using
>
I am not able to understand. Will you please tell me how to get connections
from JMX ?
Or what is wrong with my approach (It is working fine even if I am not using
embedded broker)
Thanks,
Anuj
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Current-Connection-Count-fo
Fire up jconsole.
On Friday, January 24, 2014, khandelwalanuj
wrote:
> Hey,
>
> I don't know how to use JMX for broker. Is there any APIs of JMX I should
> use ?
>
>
> Thanks,
> Anuj
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-A
Ohh. I explored a little bit and got to know this.
Does your mean by saying JMX is:
*BrokerViewMBean brokerView = (BrokerViewMBean)
getBrokerService().getManagementContext().newProxyInstance(brokerName,
BrokerViewMBean.class, true);*
and I can get transport connector by:
*brokerView.getTranspor
Ohh. I explored a little bit and got to know this.
IS your mean by saying JMX is:
*BrokerViewMBean brokerView = (BrokerViewMBean)
getBrokerService().getManagementContext().newProxyInstance(brokerName,
BrokerViewMBean.class, true);*
and I can get transport connector by:
*brokerView.getTransportC
Hey,
I don't know how to use JMX for broker. Is there any APIs of JMX I should
use ?
Thanks,
Anuj
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Current-Connection-Count-for-ActiveMQ-broker-tp4676635p4676741.html
Sent from the ActiveMQ - User mailing list archive at N
You don't need a plugin for that. Use JMX.
On Friday, January 24, 2014, khandelwalanuj
wrote:
> I think little bit confusion here; let me elaborate:
>
> I am running ActiveMQ broker as a separate java process. And clients are
> connecting from different hosts and client have different java proc
I think little bit confusion here; let me elaborate:
I am running ActiveMQ broker as a separate java process. And clients are
connecting from different hosts and client have different java process and
connecting to the broker using transport connectors (TCP).
I am using this code in my own broker
An embedded broker is a broker in the same JVM process.
It's not possible for the code posted to give connection counts for a broker
in another JVM as the code is walking the internal data structures of the
broker, which are only accessible from the same JVM (unless some debugging
magic is also i
Hi,
I think here you mean embedded broker by "broker in the same java process as
clients" ?
I have access to the broker's API.
But I am *not using *embedded broker. I am using broker in a different java
process and clients are connecting from other places. But still this API is
showing the corr
Sure, that's one way if you're using an embedded broker and have
direct access to the broker's API.
You could also use JMX to query the stats.
You could also subscribe to the connection advisory topic and count
how many messages about started connections you get back.
On Wed, Jan 22, 2014 at 7:4
21 matches
Mail list logo