geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Forrest Xia (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-5800) logged-in Subjects are cleaned up after web requests complete
Date Wed, 22 Feb 2012 05:56:50 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213361#comment-13213361
] 

Forrest Xia commented on GERONIMO-5800:
---------------------------------------

I did not follow up the history discussion here for this jira, can anyone provide a reproduceble
steps here to reproduce this issue? A sample application could help a lot on determining this
issue quickly.

Thanks!
                
> logged-in Subjects are cleaned up after web requests complete
> -------------------------------------------------------------
>
>                 Key: GERONIMO-5800
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5800
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty, Tomcat
>    Affects Versions: 2.2.1, 3.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>
> We generally don't clean up the logged in Subject when a web request returns.  This results
in a memory leak in ContextManager.subjectContexts. As well as geronimo changes I think this
will need changes in the Jetty Authenticators we use.  I think we control all the affected
tomcat code.  Ejb requests appear to already clean this up on exit.
> As an application-level workaround your app can call:
> Subject subject = ContextManager.getCurrentCaller();
> ContextManager.unregisterSubject(subject);
> immediately before control returns to the client.  (I haven't tested this to make sure
it doesn't break something else)
> Thanks to Morten Svanaes and David Frahm for reporting this problem on the user list.
 There may be a similar problem in 2.1.x but the code and solution will be somewhat different.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message