Results 1 to 8 of 8
Thread: Disable Attach API in Sun JVM
- 05-26-2012, 09:21 PM #1
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
- 05-26-2012, 10:21 PM #2
Re: Disable Attach API in Sun JVM
Can you explain what framework, packages and classes you are talking about?
If you don't understand my response, don't ignore it, ask a question.
- 05-27-2012, 10:19 AM #3
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
Re: Disable Attach API in Sun JVM
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?
- 05-27-2012, 12:19 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
Re: Disable Attach API in Sun JVM
Doesn't a JVM flag -Dcom.sun.management.jmxremote=false help?
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 05-27-2012, 04:44 PM #5
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
Re: Disable Attach API in Sun JVM
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.
- 05-27-2012, 05:00 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
- 05-27-2012, 06:09 PM #7
Member
- Join Date
- May 2012
- Posts
- 4
- Rep Power
- 0
Re: Disable Attach API in Sun JVM
I found it here.
- 05-27-2012, 06:31 PM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Attach XML content in UDP socket
By irsalina in forum New To JavaReplies: 7Last Post: 06-22-2011, 10:18 AM -
How to attach a listener to a folder
By bayan in forum New To JavaReplies: 1Last Post: 10-21-2010, 11:03 AM -
Attach Photos in SWT to database
By ashin in forum SWT / JFaceReplies: 0Last Post: 08-09-2010, 06:48 AM -
How to attach two BufferedImage to obtain 1 buffered image
By LankanSniper in forum Java 2DReplies: 4Last Post: 03-23-2010, 03:46 PM -
how can i attach a worg/image file
By sniffer139 in forum AWT / SwingReplies: 4Last Post: 03-12-2010, 06:49 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks