Skip to content

Conversation

@valeriy42
Copy link
Contributor

@valeriy42 valeriy42 commented Jun 5, 2024

In the CBoostJsonWriteBase class, we maintain a cache of allocators that should be reused when we write new results. Although we took measures to free memory in these allocators, it was still not entirely possible. As a result, we noticed a gradual increase in memory usage by native processes due to the increasing size of the allocators in the cache.

This PR ensures that the allocator is removed from the cache and the memory is freed.

Backport of #2679 to 7.17

@valeriy42 valeriy42 marked this pull request as ready for review June 6, 2024 08:13
@valeriy42 valeriy42 changed the title [Backport] Remove allocator from cache [Backport] [ML] Remove allocators from cache after usage Jun 6, 2024
@valeriy42 valeriy42 requested a review from tveasey June 6, 2024 09:43
@valeriy42 valeriy42 merged commit 8454885 into elastic:7.17 Jun 10, 2024
@valeriy42 valeriy42 deleted the backport-2676-7.17 branch June 10, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant