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

JDK 1.3.1: ORB.shutdown does not recover resources

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.1, 1.4.1
    • Fix Version/s: 1.3.1
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      09
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Not verified

      Description

      The JDK ORB creates ReaderThreads that are never destroyed. If an app
      creates and destroys ORBs its ThreadCount goes up forever. This is a
      big problem for production systems. I attach a test case. After 10
      iterations the thread count is 13 after 100 iterations the thread count
      is 103:

      1.4.1_02:
      ----------
      java -classpath . test.ReaderTest 10
      Current threads: 2
      After 10 iterations, current threads: 13

      java -classpath . test.ReaderTest 100
      Current threads: 2
      After 100 iterations, current threads: 103

      1.3.1_07:
      ---------
      java -classpath . test.ReaderTest 10
      Current threads: 1
      After 10 iterations, current threads: 12

      java -classpath . test.ReaderTest 100
      Current threads: 1
      After 100 iterations, current threads: 102

      We would expect that ORB.shutdown would also clean up the reader
      threads, or at the very least a System.gc() on an unreferenced ORB
      would clean them up - but neither has any affect.

      Attached is the testcase ( copy the IOR when you start tnameserv to
      TestIOR in your home directory )

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcavanauorcl Ken Cavanaugh (Inactive)
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: