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

AbstractHeaderBasedCachingWire acts like a memory leak #124

Closed
cvrebert opened this issue Jan 26, 2016 · 3 comments
Closed

AbstractHeaderBasedCachingWire acts like a memory leak #124

cvrebert opened this issue Jan 26, 2016 · 3 comments

Comments

@cvrebert
Copy link

Currently, entries are never removed from the cache and there is no limit on the number of entries in the cache. Thus, it's effectively a memory leak.
A simplistic minimal way to address this would be:

  • Add a constructor parameter for the maximum number of items in the ConcurrentHashMap cache
  • Add a constructor parameter for an eviction algorithm, which will be invoked with the cache whenever the cache's size exceeds the maximum
@dmarkov
Copy link

dmarkov commented Jan 29, 2016

@yegor256 please do something about it, see par.21

@andreoss
Copy link
Collaborator

andreoss commented Jul 9, 2020

@cvrebert Closing in favor of #179

@andreoss andreoss closed this as completed Jul 9, 2020
@0crat
Copy link

0crat commented Jul 9, 2020

Job gh:jcabi/jcabi-http#124 is not assigned, can't get performer

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

No branches or pull requests

5 participants