Menu

#36 Memory leak in lookup

None
closed-works-for-me
nobody
None
5
2014-12-22
2010-08-27
Anonymous
No

Lookup seems to have a memory leak. It happens in my program, and will fill about 1.5Gb of memory after about 5.000.000 AAAA or NS lookups.

Discussion

  • Brian Wellington

    If there is an actual memory leak, it's a problem with your Java runtime environment, as the language is specifically designed to not leak memory.

    If there is some amount of memory consumed by the Lookup that's not controlled by the LRU-based cache structure, that could be a problem, but there isn't enough information here to have any idea, since it's unclear whether the lookups are unique or all different, result in positive or negative answers, or anything else. If you have a sample program, please attach it.

     
  • Brian Wellington

    • status: open --> closed-works-for-me
    • Group: -->
     
MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.