-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak in hypersistence-optimizer itself? #143
Comments
The Optimizer collects all events and never clears them as it doesn't know if the client application consumed them. However, you can call
|
Ok, thanks, we will try something with that clear-method. |
That's a good idea, and the
By the way, are those runtime events that capture long-running queries and |
Nice, thanks. |
If you can provide me with more info, I'd gladly look into it. Normally, it shouldn't be any leak as other than the |
We'll look into it and put some data together for you. Perhaps tomorrow. Than you for your quick response. |
Looking forward to it. |
Hi Vlad, the mass of events seems to consist of these: Is there a way to see the context of this event? We are using spring-boot (2.5.2), spring-data, hibernate, hikari and postgresql. We use your suggestions for hikari.auto-commit: false and provider_disables_autocommit: true. |
You can filter the |
Hi, For now we look at the other many proposals, your nice tool made for our hibernate usage. Thank you for that. |
I created the #144 issue for the runtime event aggregation. The query events contain the query info, but the session events don't contain such info. One solution would be to store a Session summary, containing the queries that were executed and the flush time info. Thanks for using it and for giving me feedback about it. |
Should have been fixed by #146. If it wasn't, then I'll reopen it. |
Hi Vlad,
we're using the optimizer for a few weeks now and encountered a memory leak in our load-test-area.
Before 09:30 we run with optimizer enabled, after 09:30 without.
optimizer-version: 2.3.1
Our Bean:
@Bean public HypersistenceOptimizer hypersistenceOptimizer(EntityManagerFactory entityManagerFactory, Set<Class<? extends Event>> knownAcceptedEvents, Set<AcceptedEvent> acceptedEvents) { return new HypersistenceOptimizer( new JpaConfig(entityManagerFactory) .setEventFilter(event -> applyFilters(event, knownAcceptedEvents, acceptedEvents)) ); }
The optimizer seems to collect a lot of events but does not drop them - is there a config that we missed for that?
The text was updated successfully, but these errors were encountered: