Usage:
You can disable the mechanism which allows tools to connect to JVM with:
-XX:+DisableAttachMechanism
Description:
JVM by default allows different diagnostic tools to connect in order to collect useful information. In some cases you might want to forbid such connections. For this purpose use the DisableAttachMechanism agument.
Disables the mechanism that lets tools attach to the JVM. By default, this option is disabled, meaning that the attach mechanism is enabled and you can use diagnostics and troubleshooting tools such as jcmd, jstack, jmap, and jinfo.
Note: The tools such as jcmd, jinfo, jmap, and jstack shipped with the JDK aren't supported when using the tools from one JDK version to troubleshoot a different JDK version.
Default Value:
Disabled by default.
Errors:
None
Arguments related:
None
Related Posts:
NOTE:
If you have additional comments, interesting experiences or even point of disagreement with this JVM argument description, please leave a comment. Your insights will help the entire 10+ million java developer community to develop one standard source of documentation for all the JVM arguments.
Edit your Comment