0 Replies Latest reply: Oct 14, 2009 11:34 AM by 843810 RSS

    Debugging and Profiling at the same time

    843810
      java version "1.5.0_11"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
      Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)


      Is it not possible to enable two agents (
      -agentlib:jdwp
      and
      -agentlib:JPIBootLoader=JPIAgent
      ) for remote access at the same time?

      Here's what I have tried:

      1) Originally I had
      JPIAgent 
      first followed by
      -Xdebug -Xrunjdwp...
      -- this refused to start at all, failing with
      "JDWP unable to get necessary JVMTI capabilities"
      2) I then tried removing
      -Xdebug -Xrunjdwp
      , and was able to get profiling in Eclipse to work, but couldn't debug.

      3) Trying
      -agentlib:JPIBootLoader=JPIAgent
      followed by
      -agentlib:jdwp
      failed the same way as (1)

      4) Reversing the order of the agentlib options allowed the app to start, but it quickly became unresponsive

      Is this just not supported?

      Edited by: jgarrison on Oct 14, 2009 9:32 AM