You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code, at least in V6 we don't ever dispose ISessionFactory. I suspect that it was the same in V5 and that this is the root cause of the leak. @Particular/nhibernate-persistence-maintainers should we prioritize this?
Pretty simple repro, using NServiceBus 5.2.9 and NServiceBus.NHibernate 6.2.3 on .NET 4.6:
Taking snapshots in VS2015 Diagnostic Tools yields a fairly predictable increase in heap objects with each run:
Although, this may be fairly low priority since it assumes bus instances are going to be created and destroyed constantly.
But, compare this to if you switch to InMemory persistence:
The sheer difference in scale may make this something to look at.
The text was updated successfully, but these errors were encountered: