前言 部署到win 服务骑上的java程序内存占用过高,想查看一下程序资源使用详情,可以使用jConsole,但是在服务器打开jConsole却无法找到本地运行的java程序。

使用jconsole 对java springBoot项目进行性能监测

服务器启动项目的方式如下

java -jar bwbd-1.0.0.jar

本地无法找到需要检测的程序我就把注意打到了远程上去了,启动java时使用如下命令

java -jar -Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9192 -Dcom.sun.management.jmxremote.rmi.port=9193 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false bwbd-1.0.0.jar

然后使用下面的远程进程:

使用jconsole 对java springBoot项目进行性能监测

 

使用jconsole 对java springBoot项目进行性能监测

 

 

 OK

相关文章:

  • 2022-01-08
  • 2022-01-13
  • 2021-08-06
  • 2021-08-13
  • 2021-11-30
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2021-04-19
  • 2021-10-04
  • 2022-12-23
  • 2021-08-20
  • 2021-09-24
  • 2022-12-23
相关资源
相似解决方案