如何在服务器中找到 JMX 端口? [英] How to find the JMX port in a server?

查看:24
本文介绍了如何在服务器中找到 JMX 端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我能看到 JAVA OPTS 参数,我相信我能弄清楚.我想使用 Jconsole 监控 hornetq 服务器,所以我需要端口号.

I am sure I can figure it out if I can see the JAVA OPTS parameters. I want to monitor a hornetq server using Jconsole, so I need the port number.

我记得我不久前连接到它时使用了一些命令,如 java grep 等.

I remember using some command like java grep etc when I connected to it a while back.

推荐答案

如果你知道进程号你可以使用 netstat 找到程序正在侦听的端口

If you know the process number you can use netstat to find what ports the program is listening on with something like

$ netstat -apn | grep <proc num>

JMX 侦听器的常规端口是 1099.

The conventional port for JMX listeners is 1099.

这篇关于如何在服务器中找到 JMX 端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆