[ 
http://issues.apache.org/jira/browse/JCR-600?page=comments#action_12453875 ] 
            
Torgeir Veimo commented on JCR-600:
-----------------------------------

I tried with both a 1.1 with the patches attached, and a fresh svn snapshot 
from Nov 28th 06, and I still see permgen growing without bounds. The code I 
use is simply

public void contextInitialized(ServletContextEvent event) {
        // set up repository 
        try {
            String rootDirectory = (String) 
ConfigManager.getEnvironmentEntry("jackrabbit/directory");
            String configFile = (String) 
ConfigManager.getEnvironmentEntry("jackrabbit/configfile");

            if (configFile.indexOf("/WEB-INF/") == 0) {
                log.debug("loading repository config from web application 
context root: " + configFile);
                URL url = event.getServletContext().getResource(configFile);
                InputStream repositoryXml = 
event.getServletContext().getResourceAsStream(configFile);
                RepositoryConfig config = 
RepositoryConfig.create(repositoryXml, rootDirectory);
                repository = new TransientRepository(config);

            } else {
                repository = new TransientRepository(configFile, rootDirectory);
            }
            
            Session session = repository.login(new SystemCredentials());
            session.logout();
            
        } catch (Exception e) {
            log.error("unable to configure Jackrabbit repository; ", e);
        }
    }


> Repository does not release all resources on shutdown
> -----------------------------------------------------
>
>                 Key: JCR-600
>                 URL: http://issues.apache.org/jira/browse/JCR-600
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.0, 1.0.1, 1.1
>            Reporter: Marcel Reutegger
>         Assigned To: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.1.1
>
>         Attachments: Screenshot_1.png, Screenshot_2.png
>
>
> When Jackrabbit is shutdown some java.util.Timer threads are still running in 
> the background even though no tasks are scheduled. This prevents the GC from 
> collecting the classes when Jackrabbit is redeployed within a web application.

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

        

Reply via email to