]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix memory leak in prometheus service 64905/head
authorNizamudeen A <nia@redhat.com>
Fri, 8 Aug 2025 06:42:20 +0000 (12:12 +0530)
committerNizamudeen A <nia@redhat.com>
Mon, 11 Aug 2025 06:23:45 +0000 (11:53 +0530)
commit26765720b972453bc69f23cd5644366bba998391
tree8971fa65a6ef1e9542ae9217c6e1d499b2497336
parent057888bde93d52d9a8c24b95cbdc2edb3e6228e0
mgr/dashboard: fix memory leak in prometheus service

Prometheus API calls in the Cluster Utilization call is subscribed in
the for loop multiple times but this is not properly unsubscribed. As we
stay in the dashboard page for longer time, it produces a significant
memory leak which eventually lags the UI. Attempting to fix it by
properly handling the subscription

Fixes: https://tracker.ceph.com/issues/72511
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/api/prometheus.service.ts