Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1066

Profiler won't attach to local process using jdk10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • None
    • profiler - Attach

    Description

      Following these steps

      • start a java process (on the command line `java -jar ...`)
      • from netbeans 'profile -> attach to external process...'
      • open 'setup attach to process...'
      • choose 'already running local java process' and the process from list. then "OK"
      • hit 'attach'

      An error dialog with only the text "0" appears.

      The logs report the following exception

      com.sun.tools.attach.AgentLoadException: 0
      	at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:104)
      	at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:115)
      	at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:139)
      	at org.netbeans.modules.profiler.NetBeansProfiler.loadAgentIntoTargetJVM(NetBeansProfiler.java:791)
      	at org.netbeans.modules.profiler.NetBeansProfiler.attachToApp(NetBeansProfiler.java:759)
      	at org.netbeans.modules.profiler.nbimpl.actions.ProfilerLauncher$ProfilerSessionImpl$1.run(ProfilerLauncher.java:112)
      	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

      This same process works with netbeans started using jdk1.8

      And using 'manually started local java process' (against a local process started with the corresponding agent jvm options) does work with jdk10

      Attachments

        1. Screen Shot 2018-07-22 at 16.41.06.png
          31 kB
          Michael Semb Wever

        Activity

          People

            Unassigned Unassigned
            mck Michael Semb Wever
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: