Topic
  • 6 replies
  • Latest Post - ‏2010-05-06T21:30:46Z by smsh
TomAusLinz
TomAusLinz
4 Posts

Pinned topic How is it possible to disable the Java Attach-API

‏2010-04-22T14:13:37Z |
Normally all Java-Applications can be attached with VisualVM and it is also possible to attach a bytecode agent.

With your Sametime 8.0 Application (that is based on Eclipse RCP and therefore Java) IBM has achieved that this attaching is not possible.
How you get this done?
Updated on 2010-05-06T21:30:46Z at 2010-05-06T21:30:46Z by smsh
  • codey
    codey
    1 Post

    Re: How is it possible to disable the Java Attach-API

    ‏2010-04-23T10:26:25Z  
    hi , The Java™ Attach API allows your application to connect to another virtual machine (the "target"). Your application can then load an agent application into the target virtual machine, for example to perform tasks such as monitoring status.
    [url=http://www.Msdssoftware.us]MSDS Software [/url]
  • TomAusLinz
    TomAusLinz
    4 Posts

    Re: How is it possible to disable the Java Attach-API

    ‏2010-04-26T13:11:54Z  
    • codey
    • ‏2010-04-23T10:26:25Z
    hi , The Java™ Attach API allows your application to connect to another virtual machine (the "target"). Your application can then load an agent application into the target virtual machine, for example to perform tasks such as monitoring status.
    [url=http://www.Msdssoftware.us]MSDS Software [/url]
    I know that the Java Attach API allows to connect agents to the target virtual machine, but i am searching for a way to disable this feature for security reasons.

    The IBM Software SameTime (from Notes) has achieved that and i ask in this ibm-forum how we can get this done too.

    Do you or anybody else know?
  • TomAusLinz
    TomAusLinz
    4 Posts

    Re: How is it possible to disable the Java Attach-API

    ‏2010-05-05T07:22:49Z  
    I know that the Java Attach API allows to connect agents to the target virtual machine, but i am searching for a way to disable this feature for security reasons.

    The IBM Software SameTime (from Notes) has achieved that and i ask in this ibm-forum how we can get this done too.

    Do you or anybody else know?
    Does nobody know how this (disabling of the AttachAPI) can be disabled?
    Please help.
  • Deeptik
    Deeptik
    1 Post

    Re: How is it possible to disable the Java Attach-API

    ‏2010-05-05T08:56:16Z  
    If you do not intend to use the Java Attach API capability, disable this feature using the Java system property.
    Set the com.ibm.tools.attach.enable system property to the value no;

    for example:

    -Dcom.ibm.tools.attach.enable=no

    hope this helps.
  • TomAusLinz
    TomAusLinz
    4 Posts

    Re: How is it possible to disable the Java Attach-API

    ‏2010-05-05T11:14:04Z  
    • Deeptik
    • ‏2010-05-05T08:56:16Z
    If you do not intend to use the Java Attach API capability, disable this feature using the Java system property.
    Set the com.ibm.tools.attach.enable system property to the value no;

    for example:

    -Dcom.ibm.tools.attach.enable=no

    hope this helps.
    Thank you for your answer - but now i have 2 questions.
    • do you now how this is possible with the sun-java-runtime?
    • is this really safe to disable with the java-system-property? anyone could change the start-parameter of your application if it is set there. or anyone could instrument your application before this property is set in your applications-code.
  • smsh
    smsh
    1 Post

    Re: How is it possible to disable the Java Attach-API

    ‏2010-05-06T21:30:46Z  
    There is more information about the Java Attach API here: http://www.ibm.com/developerworks/java/jdk/linux/6/sdkandruntimeguide.lnx.html#attachapi