jmx

使用kafka-eagle监控Kafka

左心房为你撑大大i 提交于 2019-11-30 07:57:43
# 监控kafka集群,开启监控趋势图使用 # 有一个问题,需要在kafka-server-start.sh文件中配置端口,有如下三种办法 # 第一种:复制并修改kafka目录,比如kafka-1,kafka-2,kafka-3,然后再每个目录下修改kafka-server-start.sh文件 # 第二种:在启动脚本start.sh中添加指定端口 # 第三种:多复制几个kafka-server-start.sh文件,然后进行修改,最后在start.sh中修改一下 # 以下三种方法任选其一即可 # 第一种方式办法,相应行修改成如下形式,注意端口号不同 # 使用的是不同目录下的不同kafka-server-start.sh文件 # start.sh文件也需要做相应的修改 # kafka-1/bin/kafka-server-start.sh if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then # export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G" export KAFKA_HEAP_OPTS="-server -Xms2G -Xmx2G -XX:PermSize=128m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=8 -XX:ConcGCThreads=5

How to access JMX interface in docker from outside?

拜拜、爱过 提交于 2019-11-30 06:14:26
问题 I am trying to remotely monitor a JVM running in docker. The configuration looks like this: machine 1: runs a JVM (in my case, running kafka) in docker on an ubuntu machine; the IP of this machine is 10.0.1.201; the application running in docker is at 172.17.0.85. machine 2: runs JMX monitoring Note that when I run JMX monitoring from machine 2, it fails with a version of the following error (note: the same error occurs when I run jconsole, jvisualvm, jmxtrans, and node-jmx/npm:jmx): The

Programatically get heap info using jmx with java 5

天大地大妈咪最大 提交于 2019-11-30 05:27:34
I am aware of using jconsole to attach to a java process to get memory information. Specifically I'm after getting information on the various memory pools programatically so I can tie it to a monitoring application. Thanks! Thanks mattk - I wound up doing basically this :-) List memBeans = ManagementFactory.getMemoryPoolMXBeans(); for (Iterator i = memBeans.iterator(); i.hasNext(); ) { MemoryPoolMXBean mpool = (MemoryPoolMXBean)i.next(); MemoryUsage usage = mpool.getUsage(); String name = mpool.getName(); float init = usage.getInit()/1000; float used = usage.getUsed()/1000; float committed =

Where to download JMXMP?

五迷三道 提交于 2019-11-30 05:22:58
I want to profile a Java application with VisualVM, remotely via JMX. Because it's a NAT'ted and firewalled EC2 instance, I can't use the default RMI approach and need to use the optional JMXMP extensions, which I must first download. NOTE – IF YOU WANT TO USE A JMXMP CONNECTOR, DOWNLOAD THE JSR 160 REFERENCE IMPLEMENTATION FROM , AND ADD THE JMXREMOTE_OPTIONAL.JAR FILE TO YOUR CLASSPATH. YOU WILL FIND EXAMPLES OF USE OF THE JMXMP CONNECTORS IN THE JMX REMOTE API TUTORIAL INCLUDED WITH THE JSR 160 REFERENCE IMPLEMENTATION. http://docs.oracle.com/javase/6/docs/technotes/guides/jmx/overview

CPU and profiling not supported for remote jvisualvm session

ε祈祈猫儿з 提交于 2019-11-30 05:04:25
When monitoring a remote app (using jstatd) I can neither profile nor monitor CPU consumption. Heap monitoring (provided I do not use G1) works. jvisualvm provides the message "Not supported for this JVM." in the CPU graph window. Is there anything missing in my setup? Google showed very few results. The local environment (Mac OS X 10.6): java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) The remote environment (Linux version 2.6.16.27-0.9-smp (gcc version 4.1.0 (SUSE Linux))): java version "1.6.0

Debugging JConsole Connection Failed

荒凉一梦 提交于 2019-11-30 04:43:51
I have a web application deployed to a remote resin server, and it has JMX turned on. I can telnet to the remote server i.e franz@see:/tmp$ telnet <remote-ip> 5555 Trying <remote-ip>... Connected to <remote-ip>. Escape character is '^]'. ��sr5javax.management.remote.message.HandshakeBeginMessage�,���6profilestLjava/lang/String;Lversionq~xppt1.0^] telnet> q Connection closed. But I cannot connect to it using my JConsole $JAVA_HOME/bin/java -cp $JAVA_HOME/lib/jconsole.jar:$JAVA_HOME/lib/tools.jar:pm-common/lib/jmxremote_optional-1_0_1_3.jar sun.tools.jconsole.JConsole service:jmx:jmxmp://<remote

configure JMX for ActiveMQ for remoting access

五迷三道 提交于 2019-11-30 03:57:25
Anyone can give the detailed steps on how to enable JMX (can be access remotely) on a newly installed 5.5.0 version? whaley In your activemq.xml file, you need make sure useJmx is true on your broker element: <broker xmlns="http://activemq.org/config/1.0" brokerName="localhost" useJmx="true"> and ensure that you have a management context <managementContext> <managementContext createConnector="true" connectorPort="1099"/> </managementContext> From there it is just a matter of making sure you can connect over TCP to your broker on port 1099 or whatever port you specify. This doesn't work quite

Connection details & timeouts in a java web service client

谁说胖子不能爱 提交于 2019-11-30 03:55:54
I have to implement a webservice client to a given WSDL file. I used the SDK's 'wsimport' tool to create Java classes from the WSDL as well as a class that wrap's the webservice's only method ( enhanceAddress(auth, param, address) ) into a simple java method. So far, so good. The webservice is functional and returning results correcty. The code looks like this: try { EnhancedAddressList uniservResponse = getWebservicePort().enhanceAddress(m_auth, m_param, uniservAddress); //Where the Port^ is the HTTP Soap 1.2 Endpoint }catch (Throwable e) { throw new AddressValidationException("Error during

JConsole command line credentials

守給你的承諾、 提交于 2019-11-30 01:50:25
问题 Is it possible to pass credentials for monitored resource to JConsole while starting it via command line. I've got the command like that right now. ${jdk.home}/bin/jconsole.exe -J-Djava.class.path=${jdk.home}/lib/jconsole.jar; ${jdk.home}/lib/tools.jar;${weblogic.home}/server/lib/wljmxclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote service:jmx:iiop://127.0.0.1:7510/jndi/weblogic.management.mbeanservers.runtime Does anyone know if that's possible and where should

What is the best or most commonly used JMX Console / Client [closed]

半世苍凉 提交于 2019-11-29 22:50:15
I have a server application that has been instrumented using JMX so that it can be monitored in test and production environments. I wish to show the current value of some JMX exposed attributes as well as the long term trends in a graphical format. What is the best or most commonly used JMX Console / Client I have come across a number of possibilities but none have stood out as clear leader: JConsole (comes with JDK but no graphical view ) JManage (does not look like much recent activity) Panoptes (does not look like much recent activity) MC4J (does not look like much recent activity) JBoss