incubator-directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy (*$^¨%`£) (JIRA) <j...@apache.org>
Subject [jira] [Closed] (DIRECTMEMORY-84) Cache should not be a private DirectMemoryServlet field and initialized in init methods
Date Sat, 26 May 2012 21:15:23 GMT

     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olivier Lamy (*$^¨%`£) closed DIRECTMEMORY-84.
----------------------------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 0.6.0)
         Assignee: Olivier Lamy (*$^¨%`£)
    
> Cache should not be a private DirectMemoryServlet field and initialized in init methods
> ---------------------------------------------------------------------------------------
>
>                 Key: DIRECTMEMORY-84
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-84
>             Project: Apache DirectMemory
>          Issue Type: Bug
>          Components: REST Server
>    Affects Versions: 0.6.0
>            Reporter: Jeff MAURY
>            Assignee: Olivier Lamy (*$^¨%`£)
>              Labels: REST, memory_leak
>
> The cache should not be a private DirectMemoryServlet field as there is nothing per the
Servlet spec that prevents the Servlet container to hold several instances of the same servlet
class. This may lead to memory consumption (as the cache may be created several times) and
unexpected behaviour (as one instance may put the object in ITS cache and another one try
to retrieve it and either no finding it or returning another object !!!!).
> It should be a Servlet context attribute and managed through the ServletContextListener
pattern.
> As soon as I have completed the work i'm doing on the Closeable stuff, I'm will submit
the fix

--
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