發表文章

目前顯示的是 8月, 2021的文章

調效能神器 JDK Mission Control (JMC) JMX 連接設定 + 監控Docker下微服務的設定

圖片
  調效能神器 JDK Mission Control (JMC) JMX  連接設定 + 監控Docker下微服務的設定 先設定 JMX 在執行Java Application 增加以下參數 - Dcom . sun . management . jmxremote - Dcom . sun . management . jmxremote . port = 7091 - Dcom . sun . management . jmxremote . rmi . port = 7091 - Dcom . sun . management . jmxremote . authenticate = false - Dcom . sun . management . jmxremote . ssl = false - Djava . rmi . server . hostname = localhost ex java \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=7091 \ -Dcom.sun.management.jmxremote.rmi.port=7091 \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ -Djava.rmi.server.hostname=localhost \ -jar Notepad.jar Docker上執行請看以下設定 修改DockerFile ... EXPOSE 8080 7091 ENTRYPOINT [ "java" , "-Dspring.profiles.active=prod" , "-Dcom.sun.management.jmxremote" , "-Dcom.sun.management.jmxremote.port=7091" , "-Dcom.sun.management.jmxremote.rmi.port=7