VisualVM
  1. VisualVM
  2. VISUALVM-488

Starting memory profiler produces error message "Agent JAR loaded but agent failed to initialize".

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.3
    • Fix Version/s: None
    • Component/s: code
    • Labels:
      None
    • Environment:

      os.arch=x86
      os.name=SunOS
      os.version=5.10
      oracle.j2ee.container.name=Oracle Containers for J2EE 10g (10.1.3.4.0)
      oracle.j2ee.container.version=10.1.3.4.0
      java.runtime.version=1.6.0_22-b04

      Description

      Starting memory profiler produces error message "Agent JAR loaded but agent failed to initialize". Other than Profiler, everything seems to work just fine.

      visualvm console log:

      Profiler.attachToApp: ***************************************************
      profiling settings --------------------------------
      isPreset: true
      name: Analyze Memory
      profilingType: 2
      overrideGlobalSettings: false
      workingDir:
      jvmArgs:
      javaPlatform: <project>
      threadsMonitoringEnabled: false
      threadsSamplingEnabled: true
      useProfilingPoints: true
      excludeWaitTime: true
      cpuProfilingType: 0
      instrScheme: 1
      threadCPUTimerOn: false
      instrumentGetterSetterMethods: false
      instrumentEmptyMethods: false
      instrumentMethodInvoke: true
      instrumentSpawnedThreads: false
      nProfiledThreadsLimit: 32
      sortResultsByThreadCPUTime: false
      samplingInterval: 10
      instrumentationRootMethods: []
      codeFragmentSelection: null
      codeRegionCPUResBufSize: 1000
      runGCOnGetResultsInMemoryProfiling: true
      allocTrackEvery: 10
      allocStackTraceLimit: -1
      selectedInstrFilter:
      profileUnderlyingFramework: false

      attach settings -----------------------------------
      target type =
      server type =
      remote =false
      direct =false
      dynamic JDK16 =true
      pid =20433
      host =
      host os =Solaris (x86), 32bit JVM
      transient port =-1

      instrumentation filter ----------------------------
      Filter type: Inclusive
      Filter value:

      Profiler.attachToApp: ***************************************************
      com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
      at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:103)
      at org.netbeans.modules.profiler.NetBeansProfiler$2.loadAgentIntoTargetJVM(NetBeansProfiler.java:904)
      at org.netbeans.modules.profiler.NetBeansProfiler$2.doInBackground(NetBeansProfiler.java:857)
      at org.netbeans.lib.profiler.ui.SwingWorker$2.run(SwingWorker.java:122)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            thurka
            Reporter:
            ennerr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: