Files
pangolin/server/lib
Dhananjay Mahtha 90c48f20e0 Fix: Prevent cache memory leak by adding maxKeys limit and conditional caching
- Add maxKeys limit (10,000) to NodeCache to prevent unbounded memory growth
- Skip caching undefined values when GeoIP/ASN lookups fail (e.g., when MaxMind DB not configured)
- Add periodic cache statistics logging every 5 minutes for monitoring
- Fixes memory leak where cache would grow indefinitely with high request volumes

The maxKeys limit uses LRU eviction, so oldest entries are automatically removed
when the limit is reached. With ~10k requests/day and 5min TTL, 10k keys provides
ample headroom while preventing OOM issues.

Fixes #2120
2025-12-21 17:08:27 -05:00
..
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-12-20 12:16:31 -05:00
2025-12-09 10:56:14 -05:00
2025-10-27 10:43:44 -07:00
2025-12-09 10:56:14 -05:00
2025-12-06 20:49:53 -05:00
2025-10-04 18:36:44 -07:00
2025-12-20 12:16:31 -05:00
2025-12-21 15:45:12 -05:00
2025-10-10 11:27:15 -07:00
2025-11-30 17:38:12 -05:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-08-14 17:06:07 -07:00
2025-12-09 10:56:14 -05:00
2025-12-19 14:45:00 -05:00
2025-11-20 12:40:25 -05:00
2025-12-09 10:56:14 -05:00
2025-12-13 11:36:53 -05:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-10-04 18:36:44 -07:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-07-13 21:58:37 -07:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00