On 14 May 2012 13:35, Steve Ebersole <st...@hibernate.org> wrote: [cut] > Configuration is not kept around by Hibernate itself once the > SessionFactory is built. Nor is SimpleValue. And as Hardy already > mentioned, that code is undergoing major changes already for 5.0.
Hibernate Search needs to keep a reference to Configuration around. We tried to avoid it as Emmanuel warned me that it would contain some memory, but we couldn't avoid it; for sure we didn't expect it would take much memory.. fact remains the Configuration is being hold on. Maybe that should be rethought? The culprit was the need of Search to be able to re-boot itself on demand, in background - a weirdness required to accomodate needs of Infinispan, mainly the fact that entities are not all known at boot time. So an easy fix could be to keep this around only in the Infinispan use case, drop it when registered as an extension of Hibernate ORM. Andrej, what's the overall size you would save by dropping the Configuration object? Sanne _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev