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

DNS provider does not cleanup resources properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 5.0u4
    • 5.0u4
    • core-libs
    • None

      Short description: com.sun.jndi.dns.DnsContext.close() doesn't work
       
      After starting the program(find the program attached as SocketLeak1.java), run "truss -t so_socket,close -p <pid>" on the Java process that is just started.
      Please find the attached results in the file called "truss_new". As you can see, there are a lot of sockets opened, and then closed. But they are closed by the garbage
      collector, not by the calls to "close()" in the code. A correct
      behavior would show up in the truss log as open/close/open/close/open/close, maybe something like the "truss2" file (the expected behaviour from the customer).

            robm Robert Mckenna
            lsakuntasunw Lakshmi Sakuntala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: