Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8368159

Significant performance overhead when started with jdwp agent and unattached debugger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None
    • In Review

      This issue is pretty much observable with millions of virtual threads and 4X-6X slowdown.
      The tested app normally (without debug agent) takes around 3+ seconds.
      With debug agent enabled it takes 14 seconds and more.
      The performance overhead is caused by the jvmti_yield_cleanup() recursively calling JvmtiExport::continuation_yield_cleanup(). The reason of this overhead is because the function JvmtiExport::can_post_frame_pop() is used to identify a need for the JVMTI cleanup which is not that precise and triggers unneeded work when debugger has not been attached yet.

            sspitsyn Serguei Spitsyn
            sspitsyn Serguei Spitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: