Skip to content

Conversation

beikov
Copy link
Member

@beikov beikov commented Sep 9, 2025

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19758
https://hibernate.atlassian.net/browse/HHH-19240

if ( snapshotter == null ) {
snapshotter = GlobalMemoryUsageSnapshotter.getInstance();
}
SNAPSHOTTER = snapshotter;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be useful to log which snapshotter implementation is selected, in case one proves more prone to failures than others.

System.out.println("MemoryUsageUtil: Using " + snapshotter.getClass().getSimpleName());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants