您如何知道jvm是否提供jmx报告?

时间:2019-02-06 00:06:53

标签: java linux centos jvm jmx

我的centOS 7主机上运行着一个Java进程。

root[7]host-0001(dev_coordinator) ~ # jps
8896 Jps
30691
4750 PrestoServer
root[7]host-0001(dev_coordinator) ~ 

端口:

root[7]host-0001(dev_coordinator) ~ # netstat -tulpn | grep 4750
tcp6       0      0 :::8080                 :::*                    LISTEN      4750/java
tcp6       0      0 :::37393                :::*                    LISTEN      4750/java
tcp6       0      0 :::8443                 :::*                    LISTEN      4750/java
tcp6       0      0 :::34941                :::*                    LISTEN      4750/java
tcp6       0      0 :::37985                :::*                    LISTEN      4750/java
tcp6       0      0 :::34377                :::*                    LISTEN      4750/java
root[7]host-0001(dev_coordinator) ~ #

如果我执行curl localhost:8080/v1/jmx/,它会给我HTML报告(不是JMX报告),如果我运行curl localhost:8443/v1/jmx/,我会得到一个简单的响应,即P

想知道是否有办法知道此JVM进程是否实际上在报告JMX?

0 个答案:

没有答案