- 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).
- Implementing Cisco UCS Solutions
- 計算機(jī)系統(tǒng)開發(fā)與優(yōu)化實戰(zhàn)
- Linux就該這么學(xué)
- 細(xì)說Linux基礎(chǔ)知識
- Cassandra 3.x High Availability(Second Edition)
- Windows 7使用詳解(修訂版)
- Agile IT Security Implementation Methodology
- Java EE 7 Developer Handbook
- Azure Resource Manager Templates Quick Start Guide
- Learning Joomla! 3 Extension Development(Third Edition)
- Linux深度攻略
- Responsive Web Design with AngularJS
- Unity AR/VR開發(fā):實戰(zhàn)高手訓(xùn)練營
- Building E-commerce Sites with Drupal Commerce Cookbook
- 深入理解嵌入式Linux設(shè)備驅(qū)動程序