Is it possible to disable the support for the Attach API in Sun Java, if so, how?
I know it is possible to disable it in IBM's JVM by setting the property com.ibm.tools.attach.enable to false.
Printable View
Is it possible to disable the support for the Attach API in Sun Java, if so, how?
I know it is possible to disable it in IBM's JVM by setting the property com.ibm.tools.attach.enable to false.
Can you explain what framework, packages and classes you are talking about?
The attach API is enabled by all applications that are written in Sun Java 6, and above (Attach API). This is not connected to any specific framework. In order to attach to a JVM the tools.jar archive from the Sun JDK is needed (com.sun.tools.attach). The default configuration of Java applications that are written will support that other Java application can connect to it with the use of Attach API from the Sun JDK.
Is there any way to remove the support for Attach API in a normal application, in order to disable this functionality?
Doesn't a JVM flag -Dcom.sun.management.jmxremote=false help?
kind regards,
Jos
Thanks everyone for their help. By setting -XX:+DisableAttachMechanism, it is possible to disable the support for the AttachAPI. The DisableAttachMechanism is set to false as default, for all Sun JVM processes.
I found it here.
Great; thanks for sharing; consider it bookmarked.
kind regards,
Jos