- Java EE 8 High Performance
- Romain Manni Bucau
- 192字
- 2021-06-30 19:14:32
How to connect remotely
Connecting locally is easy since jvisualvm will just locally look up the running JVM. But for connecting remotely, you will need some more setup.
All the communication relies on JMX and, therefore, you need to set up a remote JMX connection. This relies on what is called a connector (can be seen as a small embedded JMX server). There are multiple protocols available but out of the box; they rely on RMI communications and system properties to be configured.
To add these system properties, the fastest and easiest way is as follows:
-Dcom.sun.management.jmxremote.port=1234
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
It will enable JMX on port 1234 and disable SSL and security. For performances, we don't need more, but if you want to keep it in production, you may need to configure the security and SSL. For more details on how to do so, you can refer to the Oracle website at https://docs.oracle.com/javase/8/docs/technotes/guides/management/agent.html.
Once this is configured, you just have to right-click on the Local item in the tree on the left side, select Add JMX Connection, and fill in the related information (host/port and the potential credentials if you've configured the security).
- Citrix XenApp Performance Essentials
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- 新手易學:系統安裝與重裝
- Linux集群和自動化運維
- Linux自動化運維:Shell與Ansible(微課版)
- Mobile First Design with HTML5 and CSS3
- CentOS 6 Linux Server Cookbook
- Linux系統最佳實踐工具:命令行技術
- Heroku Cloud Application Development
- μC/OS-III內核實現與應用開發實戰指南:基于STM32
- 統信UOS應用開發進階教程
- 樹莓派+傳感器:創建智能交互項目的實用方法、工具及最佳實踐
- Mastering AWS CloudFormation
- Modern Python Cookbook