rcourtman
c7f4030c29
fix(monitoring): prevent memory leak from stale metrics history and rate tracker entries
...
MetricsHistory.Cleanup() was defined but never called, and even if called,
it only removed old data points without deleting map entries for deleted
containers/VMs. Each stale entry leaked ~224KB (7 pre-allocated slices).
Changes:
- Call metricsHistory.Cleanup() and rateTracker.Cleanup() in maintenance loop
- Delete map entries entirely when all data points have expired
- Return nil instead of empty slice in cleanupMetrics() to release backing arrays
- Add Cleanup() method to RateTracker with 24-hour stale threshold
- Add debug logging to track cleanup activity
Related to #1153
2026-02-03 17:16:06 +00:00
..
2025-11-26 23:44:36 +00:00
2025-10-20 15:13:37 +00:00
2025-11-05 19:26:20 +00:00
2026-01-24 22:43:31 +00:00
2025-10-11 23:29:47 +00:00
2025-12-01 20:15:32 +00:00
2026-02-02 17:29:14 +00:00
2025-12-01 17:33:36 +00:00
2025-11-18 09:46:48 +00:00
2025-12-12 17:51:43 +00:00
2025-12-12 18:13:17 +00:00
2025-12-01 19:40:32 +00:00
2025-10-22 15:36:26 +00:00
2026-01-24 22:43:31 +00:00
2026-01-03 19:05:18 +00:00
2026-02-03 00:12:16 +00:00
2026-01-17 14:42:52 +00:00
2025-12-02 17:21:48 +00:00
2026-01-02 00:03:23 +00:00
2026-01-01 22:29:15 +00:00
2025-12-01 01:37:28 +00:00
2025-10-20 15:13:38 +00:00
2025-10-14 16:13:53 +00:00
2025-11-12 09:47:02 +00:00
2026-01-28 16:52:35 +00:00
2025-12-02 17:21:48 +00:00
2025-12-01 10:53:41 +00:00
2026-01-22 00:45:04 +00:00
2026-01-01 22:29:15 +00:00
2026-01-24 22:43:31 +00:00
2026-01-01 22:29:15 +00:00
2025-11-26 23:44:36 +00:00
2026-01-19 19:26:18 +00:00
2026-01-22 00:45:04 +00:00
2025-10-25 16:00:37 +00:00
2025-12-02 17:21:48 +00:00
2025-12-01 21:18:33 +00:00
2025-11-27 09:16:53 +00:00
2026-02-03 17:16:06 +00:00
2026-02-03 17:16:06 +00:00
2025-12-02 17:21:48 +00:00
2025-11-27 09:19:33 +00:00
2026-01-22 09:39:53 +00:00
2026-02-03 12:03:06 +00:00
2026-01-22 13:39:06 +00:00
2026-01-25 21:08:44 +00:00
2026-01-04 10:29:40 +00:00
2025-12-02 17:21:48 +00:00
2025-11-18 22:57:20 +00:00
2026-01-03 18:36:17 +00:00
2026-01-24 22:43:31 +00:00
2026-01-22 00:45:04 +00:00
2025-10-20 15:13:38 +00:00
2025-12-17 20:16:27 +00:00
2026-01-21 10:53:36 +00:00
2026-01-04 10:29:40 +00:00
2026-01-04 10:29:40 +00:00
2026-01-04 10:29:40 +00:00
2025-11-05 19:28:37 +00:00
2025-12-02 17:21:48 +00:00
2026-01-28 16:52:35 +00:00
2026-01-08 12:06:36 +00:00
2026-01-04 10:29:40 +00:00
2026-01-04 10:29:40 +00:00
2026-01-21 10:53:36 +00:00
2026-01-04 10:29:40 +00:00
2026-01-21 10:53:36 +00:00
2025-12-02 17:21:48 +00:00
2026-01-05 23:34:33 +00:00
2026-02-03 17:16:06 +00:00
2026-01-25 21:08:44 +00:00
2026-02-03 16:24:28 +00:00
2026-01-14 12:26:18 +00:00
2025-11-27 00:05:04 +00:00
2025-10-11 23:29:47 +00:00
2026-02-03 17:16:06 +00:00
2026-02-03 17:16:06 +00:00
2026-01-24 22:43:31 +00:00
2026-02-03 16:46:27 +00:00
2025-12-02 17:21:48 +00:00
2025-12-02 14:48:57 +00:00
2025-12-01 20:44:00 +00:00
2025-12-02 14:41:53 +00:00
2025-12-01 19:04:23 +00:00
2026-01-06 17:44:52 +00:00
2026-01-06 17:44:52 +00:00
2025-12-02 12:02:13 +00:00
2025-10-25 13:12:47 +00:00
2026-01-24 22:43:31 +00:00
2026-01-24 22:43:31 +00:00