I am using Ehcache in my application. I need to monitor cache statistics using JMX. Ehcache provides an api net.sf.ehcache.management for the same.
Please let me know, how to proceed further?
Documentation on this topic can be found here, it should give you insights on what you need to do.
Related
We have been playing around with Brave(Java implementation of Zipkin) and successfully added tracing for REST and database calls. We would like to also add RabbitMQ to the tracing and would like some thoughts from anyone who may have had similar experiences that they could share.
We have tried to find some stuff online but can't seem to find an interceptor we could add to our rabbit implementation. Can you recommend anything?
Thanks in advance.
The best way to ask for a feature is using github issues.
To add a new transport such as RabbitMQ, you'd have to affect Brave (reporter) and Zipkin (collector)
https://github.com/openzipkin/zipkin/issues
https://github.com/openzipkin/brave/issues
I am new to zookeeper and after weeks of reading documentations and I got confused with its concepts.
Acoording to me,
Zookeper provides set of apis so that we can make use of it to
co-ordinate the distributed application.
Anyone correct me if I am wrong.
Zookeeper is about distributed computing
Good tutorials
1)https://www.youtube.com/watch?v=2RfBHqDWa60
2)Why do we need ZooKeeper in the Hadoop stack?
3)https://www.igvita.com/2010/04/30/distributed-coordination-with-zookeeper/
4)http://zookeeper.apache.org/doc/r3.4.2/index.html
Hope that helps
You are absolutely right ..
Zookeeper is also used for configuration management in distributed applications .
Go through hadoop book (2009-Book-Hadoop the Definitive Guide )to know more about zookeeper .
I have been tasked with integrating ActiveMQ with Weblogic (v 10.3.6.0).
I have downloaded ActiveMQ v 5.10.0, installed it upon the server and browsed to localhost:8161/admin in order to confirm that ActiveMQ is running.
I'm not sure how to progress from here in order to complete my goal. This link:
http://activemq.apache.org/weblogic-integration.html
.. suggests that there are two approaches to deploying ActiveMQ on Weblogic: either deploying a broker as an application or using a J2EE Connector. I'm investigating the latter approach as I have now installed ActiveMQ on the server (which means that I already have a running broker, I assume) but can't find much useful information on the Net about how to do this.
This page:
http://activemq.apache.org/resource-adapter.html
... suggests that it can be done via a JCA Resource Adapter but again does not give any details on how to do it.
If anyone has any advice or guidance, I'd appreciate it.
Thanks in advance.
Did you try this: http://activemq.apache.org/how-to-deploy-activemq-ra-versionrar-to-weblogic.html?
You will have to grab the resource adapter from maven.
Not that your local installation will help you much expect for testing etc. You should deploy AMQ inside WebLogic if you want it to serve as the JMS layer of WebLogic - otherwise a totally standalone installation is fine. But then you're done, and I suspect you want the deployed version non the less.
i want to know how to configure haproxy and rabbitmq.i want to make my rabbitmq more scalable and available....
any link any idea anyone have
There is a tutorial provided by the RabbitMQ folks to do HA/Failover.
They use DRBD and Pacemaker, you can have a look at the link provided.
I have tried and tested the JMX API and it is pretty simple to use and provides a vast number of statistics required for monitoring ActiveMQ.
But the problem is, i dont want to monitor my ActiveMQ remotely and also i dont want to use another API.To be more precise, i want to use the JMS API itself to get statistics related to various destinations and the broker itself.
Advisory messages seem to be an alternative but they provide limited Amount of Administrative Messages to monitor.
Any input is highly appreciated...
There is no built-in support for this. But you can implement a JMS topic which publishes the monitoring data every few seconds. Make the connection non-persistent so that it doesn't pile up when there are no listeners or when they loose connection.
Now you can write a client that connects to this topic and it will receive updates.
AMQ-2379 resulted in a broker plugin for grabbing statistics from destinations by sending a simple JMS message. Check out the docs that show how to use it here:
http://activemq.apache.org/statisticsplugin.html
The statistics plugin is available in the 5.3 release.
You can checkout this http://issues.apache.org/activemq/browse/AMQ-2379, it will be avaiable in upcoming 5.3.0 release
There's a blog post queued up to go on http://issues.apache.org/activemq/browse/AMQ-2379 - will post it in a couple of days or so