jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandru Popescu <the.mindstorm.mailingl...@gmail.com>
Subject BindableRepository profiling and suggested patch
Date Sat, 10 Dec 2005 02:28:29 GMT

I've been profiling an application using Jackrabbit by means of BindableRepository. I have
that on consequetive redeployments a lot of memory is not freed (check the attached picture).
As you can notice a lot of this space is used by java.lang.Shutdown which keeps the shutdown

The application has context listeners that are correctly unregistering the BindableRepository

My proposed patch is the following:

1/ keep the shutdown hook thread in the BindableRepository after init is called;
2/ if the BindableRepository.shutdown is correctly called by means of RegistryHelper than
remove the 
shutdown hook

Attached is also the patch generated upon BindableRepository v.307128.

What is your opinion on this?

.w( the_mindstorm )p.

View raw message