jmx

JConsole remote connection to JBoss EAP

核能气质少年 提交于 2021-02-18 06:48:11
问题 I am trying to connect to a remote jboss instance running on a server. I am using the following connection URL service:jmx:remoting-jmx://90.214.64.170:9999 When i do this i get the following 2 errors in the console window After selecting insecure i am presented with this I have, prior to connecting via jconsole also gone to the bin directory of my jboss server and run ./jconsole.sh which outputs the following to the command line CLASSPATH /usr/bin/java/jdk1.8.0_11/lib/jconsole.jar:/usr/bin

Restricting JMX to localhost

♀尐吖头ヾ 提交于 2021-02-18 02:48:00
问题 While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only accessible to local machine. Unfortunately it appears that the "out of the box" management options do not allow restricting the ports to a local interface and netstat shows them listening on any/all interfaces. http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html#gdevf I have to admit I am bewildered

Restricting JMX to localhost

情到浓时终转凉″ 提交于 2021-02-18 02:45:08
问题 While there appears to some documentation on how to expose JMX through various firewall and tunneling schemes, I sort of want the opposite. I want to ensure that JMX is only accessible to local machine. Unfortunately it appears that the "out of the box" management options do not allow restricting the ports to a local interface and netstat shows them listening on any/all interfaces. http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html#gdevf I have to admit I am bewildered

Enabling JMX Support in ehcache 3.1.2

笑着哭i 提交于 2021-02-11 16:31:51
问题 I am using camel 2.18.1 and the camel-ehcache component to build a simple cache. While the cache setup is working okay, I am finding it difficult to register mbeans using ehcache 3.1.2 ( this is pulled in via camel). Reading the documentations - it is not clear how one would enable support with 3.x as the standard way of registering mbeans using ManagementService is no longer available on the API. The documentation is a bit confusing with pure ehcache implementations and JSR-107 cache

Enabling JMX Support in ehcache 3.1.2

依然范特西╮ 提交于 2021-02-11 16:29:41
问题 I am using camel 2.18.1 and the camel-ehcache component to build a simple cache. While the cache setup is working okay, I am finding it difficult to register mbeans using ehcache 3.1.2 ( this is pulled in via camel). Reading the documentations - it is not clear how one would enable support with 3.x as the standard way of registering mbeans using ManagementService is no longer available on the API. The documentation is a bit confusing with pure ehcache implementations and JSR-107 cache

Spring framework monitoring ThreadPoolTaskExecutor queue size

青春壹個敷衍的年華 提交于 2021-02-07 14:01:07
问题 I checked http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/scheduling/concurrent/ThreadPoolTaskExecutor.html There is no getter for queue size, only queue capacity. If I use jmx to monnitor ThreadPoolTaskExecutor, how can I monitor queue size level to make sure it is healthy? 回答1: executor.getThreadPoolExecutor().getQueue().size() EDIT @ManagedResource public class MyTEMBean { private final ThreadPoolTaskExecutor te; public MyTEMBean(ThreadPoolTaskExecutor

How to configure JMX with Spring Boot

天大地大妈咪最大 提交于 2021-02-06 09:13:33
问题 I have created a Spring Integration application with Spring Boot. I would like to know how to configure JMX with Spring Boot. I believe by default JMX is configured when using Spring Boot Actuator. Do I need to configure anything else to be able to export MBeans for Spring Integration? Most of the example I see have the following line in the applicationContext.xml <context:mbean-export/> <context:mbean-server/> My Application.java class looks like this. package com.jbhunt.app

How to configure JMX with Spring Boot

五迷三道 提交于 2021-02-06 09:04:10
问题 I have created a Spring Integration application with Spring Boot. I would like to know how to configure JMX with Spring Boot. I believe by default JMX is configured when using Spring Boot Actuator. Do I need to configure anything else to be able to export MBeans for Spring Integration? Most of the example I see have the following line in the applicationContext.xml <context:mbean-export/> <context:mbean-server/> My Application.java class looks like this. package com.jbhunt.app

convert a .sh command into .bat equivalent

天涯浪子 提交于 2021-02-05 09:12:05
问题 I am following this tutorial to run jmx_exporter with cassandra` https://www.robustperception.io/monitoring-cassandra-with-prometheus I have found that instead of changing JVM_OPTS in cassandra-env.sh file, I should change bin/cassandra.bat to make javaagent work (I tried adding JVM_OPTS in both .sh and .ps1 but none worked) https://docs.appdynamics.com/display/PRO45/Apache+Cassandra+Startup+Settings The challenge I am facing is converting JVM_OPTS="$JVM_OPTS -javaagent:'$PWD/jmx_prometheus

Paralell HTTP Request dynamically

点点圈 提交于 2021-01-29 19:31:19
问题 I need perform some requests in paralell, I saw jp@gc - Parallel HTTP Requests, but I can´t found a way to load dynamically the URL´s in to the controller; my problem is the URLs to hit come from a JSON response; What is the way to indicate the URLs in a variable? Exist any way to manipulate the sampler using a JSR232 or beanshell to include the URLs? Or maybe how can I do a Thread Group and a HTTP sampler in execution time? Kind Regards, Alejandro Longas H. 回答1: Put the variable as ${url} in