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

JConsole keeps creating new threads

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P5 P5
    • 7
    • 6
    • tools
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0-rc"
      Java(TM) SE Runtime Environment (build 1.6.0-rc-b98)
      Java HotSpot(TM) Client VM (build 1.6.0-rc-b98, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      It seems as the SwingWorker thread pool used in JConsole keeps creating new threads and discarding old ones.

      Having let JConsole run for approximately 2½ hour. I see threads having names like
         SwingWorker-pool-1-thread-23615

      That means JConsole is creating around 10000 threads/hour. Now even if the creation of threads does not have a great overhead. It kind of defies the purpose of having a thread pool.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Start JConsole

      Connect to jconsole process from within jconsole.

      Select Threads-tab


      REPRODUCIBILITY :
      This bug can be reproduced always.

            leifs Leif Samuelsson (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: