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
if we instantiate a session factory once and only once (e.g. SchedulerDBManager is a singleton), it is ok, we use factory to create the session and close the session when it is finish. If we keep creating factory or never close the session, than we will have problem
Analyse of a heap dump shows a large heap memory usage due to hibernate session factory and QueryPlanCache from SchedulerDBManager
The session factory maintains a cache of compiled queries. If this cache is not cleaned up, it keeps growing over time
A discussion maybe/maybenot linked:
https://stackoverflow.com/questions/17823599/possible-memory-leak-due-to-org-hibernate-internal-sessionfactoryimpl
A discussion most likely linked:
https://stackoverflow.com/questions/31557076/spring-hibernate-query-plan-cache-memory-usage
The text was updated successfully, but these errors were encountered: