Menu

#14 NonBlockingHashMap unbounded growth

open
nobody
None
5
2012-09-01
2012-09-01
No

NonBlockingHashMap seems to have unbounded growth when using unique keys, even if the actual set of entries is small.

This gist illustrates the problem: https://gist.github.com/3568485

It simply inserts and removes a monotonically increasing integer. I.e., the working set is at most one object, but the map still grows to use all available heap, at which point it will eventually die with a OutOfMemoryError.

This problem has been observed in the wild in Cassandra, where NonBlockingHashMap is used liberally.

Discussion

  • Daniel Norberg

    Daniel Norberg - 2012-09-01
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.