Skip to content
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

[To rel/0.12] [IOTDB-1415] Fix OOM caused by ChunkCache #3312

Merged
merged 3 commits into from Jun 4, 2021

Conversation

JackieTien97
Copy link
Contributor

Description

The detailed description could be seen in JIRA

Analysis

The details could be found in Confluence

Solution

Use Caffeine Cache to replace the previous LinkedHashMap.

Caffeine is a high performance Java caching library providing a near optimal hit rate. Caffeine provides an in-memory cache using a Google Guava inspired API. The improvements draw on their experience designing Guava's cache and ConcurrentLinkedHashMap.

The Tests in their website shows that it's much more better than Guava Cache.

In our own weekly test, Caffeine Cache's performance is same as the previous wrong implementation of master.

@sonarcloud
Copy link

sonarcloud bot commented Jun 2, 2021

@HTHou HTHou merged commit bbc7c8b into rel/0.12 Jun 4, 2021
@HTHou HTHou deleted the ChunkCacheCaffeine012 branch June 4, 2021 07:16
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.

None yet

2 participants