[ 
http://opencast.jira.com/browse/MH-8205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28141#comment-28141
 ] 

Adam McKenzie commented on MH-8205:
-----------------------------------

Sent this to felix mailing list:

Hi Everyone,

I am having a problem in my application that too many sessions are remaining 
open instead of closing after turning inactive when using the Jetty 
HttpService. This eventually leads to the application grounding to a halt after 
~2.8 million sessions are made. I have manually set the maxInactiveInterval on 
one of the HttpServletRequests REST endpoints to a short period and have 
verified that if I create 10,000 requests the sessions are disposed of 
properly. Fixing it this manual way seems like a bad solution considering there 
is at least 200 places where requests are handled and this number will increase 
over time creating a risk of forgetting to set the default timeout value.

Based upon this former email on the mailing list 
(http://www.mail-archive.com/[email protected]/msg19839.html) and the lack 
of the configuration property in the documentation 
(http://felix.apache.org/site/apache-felix-http-service.html) I assume there is 
no way to set this value in a configuration file similar to web.xml? Is there a 
way that I can from a HttpServletRequest get access to the SessionManager or 
some other object that will enable me to set a default timeout value for all 
sessions? I also don't see a way to do this by grabbing the HttpService during 
a bundle activation through the context.

Thanks!
Adam McKenzie

                
> Jetty Sessions lead to memory leak
> ----------------------------------
>
>                 Key: MH-8205
>                 URL: http://opencast.jira.com/browse/MH-8205
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Administrative Tools, Engage Tools
>    Affects Versions: 1.2, 1.3
>            Reporter: David Horwitz
>            Assignee: Adam McKenzie
>            Priority: Release Blocker
>             Fix For: 1.2.1, 1.3
>
>         Attachments: 1.2.x-HttpServletRequest.list, 
> MH-8205-Memory-Leak-Trunk.patch, trunk-HttpServletRequest.list
>
>


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

        
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to