jmx

Same JMX Mbean class for many application at same server

£可爱£侵袭症+ 提交于 2019-12-04 09:59:53
I have more than 5 spring web application and all of them are utilizing another common library. This common library has its own MBeans. Because of mandatory unique objectName constraint, my applications could not be deployed on same server. The way I am using MBeans are like this: @ManagedResource(objectName = "com.org.city:name=City", description = "City related operations") I would like to use same MBean class with different objectNames for all applications. What is the correct way to utilize it without duplicating my MBeans. Thanks bostaunieux I ran into the same issue, and built off of

How do I monitor Tomcat6 with JVisualvm in Ubuntu Linux?

萝らか妹 提交于 2019-12-04 09:55:30
I'm trying to set up JVisualVm to monitor a Tomcat 6 instance (running on Ubuntu Server 10.04 LTS). I've seen other questions, but none of them directly answer my problem. I try to connect to Tomcat with JVisualvm and it comes back with a "Cannot connect" error - but there are TCP connections being made to the server; the server drops the connection after a short burst of traffic. I have already added this to /etc/default/tomcat6 and restarted tomcat6 # This enables JMX in order to permit VisualVM to profile the JVM. JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote=true -Dcom.sun

Trying to generate JMeter Test Plan (jmx) With JMeter API : Mismatch between jmeter jmx file created from code and the one created by JMeter

 ̄綄美尐妖づ 提交于 2019-12-04 09:16:15
I am trying to create a jmeter jmx file using the jmeter java api. This is what I have done, gui.jmx Use the jmeter gui application to create a reference jmx file against which I can compare. To the test plan, I only add a thread group and a java sampler within the thread group. All values are default. code.jmx Using the jmeter java api, I create a jmx file containing a test plan, thread group and java sampler. All values are set as per the case 1. After creating the jmx file from code, I note the following differences, 1) The nodes in gui.jmx is replaced by the following in code.jmx <org

exporting spark worker/executor metrics to prometheus using jmxagent

蓝咒 提交于 2019-12-04 08:34:17
I have followed the instructions here to enable the metrics export to Prometheus for spark. In order to enable metrics export not just from the job, but also from master and workers, I have enabled the jmx agent for all of spark driver, master, worker, and executor. This causes a problem since spark worker and executor are collocated on the same machine and, thus, I need to pass in different jmx ports to them. This is not a problem if I have a 1-1 relationship between spark workers and executors, however, it breaks down in the multiple executors per worker scenario, as there is no way to

Can't stop tomcat normally when I configure jmxremote

一曲冷凌霜 提交于 2019-12-04 08:08:15
I added a jmxremote configuraiton in the catalina.bat: set JAVA_OPTS=-Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false so that I could start jconsole to monitor the tomcat's performance. But I got a problem that I couldn't stop tomcat normally through $CATALINA_HOME\catalina.bat stop , neither did $CATALINA_HOME\shutdown.bat Any suggestions? There are 2 things: Please have a look at my blog post , where I summarized how to do it properly (having encountered this in the past...) Make sure that you put the

How do I attach VisualVM to a simple Java process running in a Docker container

笑着哭i 提交于 2019-12-04 07:44:53
问题 Actually I wanted a solution working for JEE containers, specifically for Glassfish, but after I tried many combinations of settings and did not succeed, I reduced the setup to the simplest possible case. Here is my Hello World daemon started in a Docker container. I want to attach jconsole or VisulaVM to it. Everything is on the same machine. public class Main { public static void main(String[] args) { while (true) { try { Thread.sleep(3000); System.out.println("Hello, World"); } catch

How to add description for MBean method to see it in jmx-console of JBOSS

筅森魡賤 提交于 2019-12-04 07:17:06
I'm using JBoss 4.3.2.GA I've added method to my MBean service. Method has several arguments in signature. It works fine but I want more. Problem: when I see method signature in jmx-console, I don't know what every of this input fields means, because jmx-console doesn't show arguments names, only input fields for values. Is there ability add description of every argument (in Java code, not xml) allowing to show this description in jmx-console of JBOSS? I've tried to use Spring annotation: @ManagedOperation to add at least method description but no results (description is not showed in jmx

在 CentOS7 上安装 Zookeeper服务

 ̄綄美尐妖づ 提交于 2019-12-04 06:04:18
在 CentOS7 上安装 Zookeeper服务 1、创建 /usr/local/services/zookeeper 文件夹: mkdir -p /usr/local/services/zookeeper 2、进入到 /usr/local/services/zookeeper 目录中: cd /usr/local/services/zookeeper 3、下载 zookeeper-3.4.9.tar.gz: wget https://archive.apache.org/dist/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz 4、解压缩 zookeeper-3.4.9.tar.gz: tar -zxvf zookeeper-3.4.9.tar.gz 5、进入到 /usr/local/services/zookeeper/zookeeper-3.4.9/conf 目录中: cd zookeeper-3.4.9/conf/ 6、复制 zoo_sample.cfg 文件的并命名为为 zoo.cfg: cp zoo_sample.cfg zoo.cfg 7、用 vim 打开 zoo.cfg 文件并修改其内容为如下: # The number of milliseconds of each tick # zookeeper

Howto Monitor several web applications (with JMX) on a Tomcat server?

不羁岁月 提交于 2019-12-04 05:03:48
Is there a way to monitor CPU and memory consumption of an individual web application on a Tomcat server? I have Tomcat opening all the web applications under its JVM, so I only see one JVM and cannot monitor each web-app by itself. The web-apps are sealed WAR files and I cannot tamper with the Java code either. Looks like the official answer (to a very similar question/suggestion) is to run multiple Tomcat instances . What do you want to monitor in web application? Servlets, ejbs....? If you pass corresponding objectname string as part of your jmx query, it will list all servlets from all

ActiveMq does not stop if broker is not available

你说的曾经没有我的故事 提交于 2019-12-04 05:03:03
问题 Getting the below error while stopping the Apache ActiveMQ 5.15.6. Setting the createConnector="false" becuase do not want default JMX connection. Note:- Start the ActiveMQ(activemq-admin.bat start) Stop the ActiveMQ(activemq-admin.bat stop) <managementContext createConnector="false"/> Error: Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi INFO: Broker not available at: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 来源: https://stackoverflow.com/questions