Quantcast
Channel: Spring Community Forums - NoSQL
Viewing all articles
Browse latest Browse all 128

SDN SpringRestGraphDatabase shutdown

$
0
0
Hi,
I have memory leak on Tomcat webapp undeploy, when there is SpringRestGraphDatabase used.

09:23:00.351 ERROR {ContainerBackgroundProcessor[StandardEngine[Catalina]]} o.a.catalina.loader.WebappClassLoader [WebappClassLoader.java : 2272] : The web application [/webapp] appears to have started a thread named [pool-6-thread-1] but has failed to stop it. This is very likely to create a memory leak.

My SDN config contains :

Code:

        <neo4j:config graphDatabaseService="graphDatabaseService" />
        <neo4j:repositories base-package="test.dao">
        </neo4j:repositories>

        <bean id="graphDatabaseService"
                class="org.springframework.data.neo4j.rest.SpringRestGraphDatabase" destroy-method="shutdown">
                <constructor-arg value="${neo4j.url}" index="0" />
                <!-- for running against a server requiring authentication
                <constructor-arg value="${neo4j.username}" index="1"/>
                <constructor-arg value="${neo4j.password}" index="2"/> -->
        </bean>

Shutdown method is invoked on undeploy, but ExecutingRestRequest pool threads is still running and so their classloader (WebappClassLoader ) is in use.
I think, it can be terminated like in org.springframework.scheduling.concurrent.Executor ConfigurationSupport.

Vlado

Viewing all articles
Browse latest Browse all 128

Trending Articles