Leftover Jackrabbit thread after shutdown.
------------------------------------------

                 Key: MAGNOLIA-4456
                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-4456
             Project: Magnolia
          Issue Type: Bug
      Security Level: Public
          Components: core
    Affects Versions: 4.5.3, 4.4.8
            Reporter: Danilo Ghirardelli
            Assignee: Philipp Bärfuss
         Attachments: ContentRepository.java.patch

When shutting down Jackrabbit repositories, at least in the 1.6 version of 
Jackrabbit, Magnolia leaves the {{Transient File Reaper}} thread active without 
apparent reason.
Restarting the app a few times without restarting the application server will 
leave a bunch of these threads open, thus wasting the thread pool.

The attached patch simply shuts down the {{TransientFileFactory}} after the 
repositories shutdown.

There is a note on the {{shutdown}} method that left me a little doubt: 
obviously repositories are started by the webapp itself and the method is 
called just after the repo shutdown, but I have no idea on how to check that 
the {{TransientFileFactory}} was loaded within the webapp classloader... Are 
there Magnolia configuration in which this is not true? Is it really possible 
to add a check?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to