jmx

Alert Management Threshold with Monitoring for Kafka/Confluent JMX metrics

家住魔仙堡 提交于 2019-12-25 03:27:01
问题 I am building an Alert Monitoring tool for Kafka. I do understand that there can be metrics for which the thresholds depends on application data. But I am only interested in knowing those metrics and threshold values which will help me in knowing the lag and help in determining if any scaling is required. As of now I can do following : Enable JMX on Kafka Broker Fecth JMX metrics using JMX Java client or jCOnsole. Next I researched and found so many metrics but none had comnplete thresholds

Activemq Shutdown fails and then kills process

核能气质少年 提交于 2019-12-25 02:27:02
问题 I am implementing replicated leveldb activemq setup. I have 3 instance of activemq running on same box. I am changing their rmiPort, amqpport and openwire port in config file. config like lookslie this: <?xml version="1.0" encoding="UTF-8"?><beans xmlns=" http://www.springframework.org /schema/beans" xmlns:amq=" http://activemq.apache.org/schema/core" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www

Spring, prototypes, and MBeanExporter

瘦欲@ 提交于 2019-12-25 02:25:44
问题 I am using Spring in conjunction with its MBeanExporter . I have a prototype bean definition which should only be instantiated when a call to ApplicationContext.getBean() is made. However, the MBeanExporter is (incorrectly) instantiating an instance of the prototype bean when bootstrapping the container. I found this bug report from ages ago, with no notable response. This seems to me like it must be a common scenario, so I feel like I must be missing something. It's important that my

Is it possible to retrieve more than 400 messages from ActiveMQ queue via Jolokia API?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 19:20:02
问题 I have an error queue in ActiveMQ, which is populated by Apache Camel's onException error handler. There could be thousands of messages in this queue. Instead of using the ActiveMQ web console, I am building a custom web admin to integrate several other statistics from other components as well. Thus, I wanted to include the statistics from ActiveMQ as well. ActiveMQ version: 5.14.3 I have looked at Jolokia JMX API, and its operations. For instance, I have the following payload to the broker's

How do I programmatically start/stop an EJB

老子叫甜甜 提交于 2019-12-24 14:13:00
问题 Does anyone know if it's possible to start/stop an EJB within my application code? Eg. I have some MDBs that I wish to selectively start/stop while my application is running? Any ideas? Can this maybe be done via JMX? Cheers! 回答1: The EJB spec has no mechanism to start/stop individual EJBs (or even modules) within an application. It is possible to start/stop applications dynamically using JMX via JSR 77. (I see you're using the jboss tag. I have no expertise in JBoss, so I don't know if it

Not able to create JMS topic programatically in WebSphere

北慕城南 提交于 2019-12-24 09:16:07
问题 I'm not able to create SIB JMS topic or queue. I tried the below code. The code ran without any exception or error public void createSIBJMSTopic(String topicName, String jndiName, String busName, String topicSpace) { try { String server = "server1"; String description = "abc"; Session session = new Session(); CommandMgr commandMgr = CommandMgr.getCommandMgr(client); configService = new ConfigServiceProxy(client); System.out.println("Commands list" + commandMgr.listAllCommands().toString());

Measure heap used by each object in Java [closed]

瘦欲@ 提交于 2019-12-24 03:09:34
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Can some suggest a good a free memory profiling tool which will show memory being used by each object in the heap separately. We are

Ideas on how to approach a project involving Integration of APIs

痞子三分冷 提交于 2019-12-24 01:57:17
问题 I am a student and working on developing a Java Application that would serve as a "Translation Layer" between one application's web service calls to another application's JMX API. Both the applications reside on 2 different systems in the same network. So, essentially, it involves a deliverable program that converts one application's web services call into the other application's service calls in JMX. Since, I've had no experience with this kind of application development, I had the following

Gathering `kafka.producer` metrics using JMX

亡梦爱人 提交于 2019-12-23 23:59:43
问题 I have a Kakfa broker running, which I am monitoring with JMX. This broker is a docker container running as a process started with kafka-server-start.sh JMX port 9999 is exposed as and used as an environment variables. When I connect to the JMX port and try to list all the domains, I get the following; kafka kafka.cluster kafka.controller kafka.coordinator.group kafka.coordinator.transaction kafka.log kafka.network kafka.server kafka.utils I dont see kafka.producer which is understandable

How can I determine the J2ee application server type and version?

断了今生、忘了曾经 提交于 2019-12-23 21:02:43
问题 I need to detect information about the Application Server my EJBs are running in. The System.properties contain a lot of information about Java and the Operating system, but I need to know what type of application server and if possible even the version. Is there a way to get this information in an application independent way (JMX maybe) ? Alternatively, is there a WebSphere specific way of getting this information ? 回答1: Take a look through the WAS MBeans that are available. It looks like