#58815·ray

[Serve] Controller RSS Memory Leak after Autoscaling Cycles (Ray 2.47.0)

Author: zh820952173Created Nov 19, 2025Updated Sep 29, 2026
Labelsbugtriageservestabilitycommunity-backlog

What happened + What you expected to happen

After repeated autoscaling up and down, the Ray Serve Controller process shows high RSS memory usage that does not return to its initial level; instead, it remains abnormally elevated. This issue is observed on Ray version 2.47.0.

Expected: When Serve deployments are scaled back to their original configuration (same number/shape as initial), the controller's RSS memory usage should return to the initial value or close to it.

Actual: Memory usage continues to grow with each autoscaling cycle and stays high even after the number of replicas and deployments return to their original configuration. This suggests a potential memory leak or incomplete cleanup of internal controller state.

Versions / Dependencies

Ray: 2.47.0 Python: (please specify actual version) OS: (please specify actual version) Other relevant libraries: (please specify if relevant)

Reproduction script

  1. Set up a Ray Serve deployment on Ray 2.47.0.
  2. Rapidly scale deployments up and down multiple times, e.g. increase and decrease replica count in cycles via autoscaling config or API.
  3. Use psutil or Ray dashboard to monitor the RSS memory usage of the Serve controller process.
  4. After restoring the deployments to their original configuration, observe that the controller's RSS memory usage remains much higher than the starting point, indicating a possible memory leak.

Issue Severity

No response