-
Notifications
You must be signed in to change notification settings - Fork 24
memory leak from ws security #1260
Comments
Reported by geturnerlmco@java.net |
Was assigned to kumarjayanti@java.net |
geturnerlmco@java.net said: |
File: MetroLeakTest.zip |
kumarjayanti@java.net said: |
kumarjayanti@java.net said: calling ((com.sun.xml.ws.Closeable)proxy).close() once you are done with the |
kumarjayanti@java.net said: |
kumarjayanti@java.net said: |
1 similar comment
kumarjayanti@java.net said: |
Marked as fixed on Sunday, October 3rd 2010, 5:57:10 pm |
wap said: The workaround has a another issue, which comes up, if close fails de to violation of the security policy, e.g. clock skew to big, an exception occurs, before the token manager could be cleaned. In this case, the memory continues growing, and I even saw some input streams remaining open and a blocking thread. I think, close() has to handle such situations and clean up, as I do not see any chance to recover from that situation. Even better, as the OP suggests, the usage of close() should be entirely unnecessary. |
File: thread-dump-filtered.txt |
wap said: |
wap said: |
nitkal said: Thanks |
geturnerlmco said: |
@vbkumarjayanti said: |
This issue was imported from java.net JIRA WSIT-1260 |
This issue was discovered while performing leak testing using JProbe 8.1. The
leak is from security classes that are allocated from using a WebServiceRef in
an EJB or servlet. The leak can be partially cleanup up by calling the close
method of the Closeable interface of the port type, but this is only a
documented feature of the Reliable Messaging handling. This has been discussed
with Vbkumar.Jayanti@Sun.COM. I have created a test case that uses a servlet
to trigger the leak (https://localhost:8181/MetroLeakTest/test?LEAK=no, or
LEAK=yes) will either call the close method, or not. The servlet class must be
updated with the correct constants for the local server.
Environment
Operating System: All
Platform: All
Affected Versions
[2.0]
The text was updated successfully, but these errors were encountered: