Open geespot opened 6 years ago
配置文件jmx.ports配置的是你要监控的java进程的端口,如果多个进程可以配置多个
配置文件jmx.ports配置的是你要监控的java进程对外暴露的端口。首先java程序要先暴露jmx,比如: nohup java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=10.19.18.666 -Xmx6g -Xms2g -jar ooxx-1.0-SNAPSHOT.jar &
我也碰到这个问题了,请问解决了吗? 我namenode开启了jmx,listen的是内网ip:50070,但是从报错日志上看是默认走localhost:50070,请问下怎么配置ip:port格式的参数
@dingmy002 配置一下 /etc/hosts e.g 10.23.45.67 conf-center_002
请仔细查看你的/etc/hosts,我的也是这个问题,不过我的是localhost写成126.0.0.1了,我改过来就好了。 你的问题应该也跟hosts文件有关
conf.properties
the working dir
workDir=./
localhost jmx ports, split by comma
agent port url
jmx.ports=8099 agent.posturl=http://localhost:1988/v1/push
this program always print this logs,can not get data?
30 15:04:56,502 [pool-1-thread-1] ERROR [com.stephan.tof.jmxmon.JMXMonitor] - Connection refused to host: localhost; nested exception is: java.net.ConnectException: 拒绝连接 java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: 拒绝连接 at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.stephan.tof.jmxmon.jmxutil.ProxyClient.checkSslConfig(ProxyClient.java:274) at com.stephan.tof.jmxmon.jmxutil.ProxyClient.(ProxyClient.java:167)
at com.stephan.tof.jmxmon.jmxutil.ProxyClient.getProxyClient(ProxyClient.java:518)
at com.stephan.tof.jmxmon.JMXMonitor.runTask(JMXMonitor.java:58)
at com.stephan.tof.jmxmon.JMXMonitor.access$0(JMXMonitor.java:50)
at com.stephan.tof.jmxmon.JMXMonitor$1.run(JMXMonitor.java:41)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)