Skip to content

Conversation

@AlexsanderHamir
Copy link
Collaborator

@AlexsanderHamir AlexsanderHamir commented Oct 17, 2025

Title

[Feature] - Add memory profiling endpoint across workers

Relevant issues

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature

Changes

  • Added /debug/memory/details & /debug/memory/summary endpoint for per-worker memory profiling using gc.
  • Added /debug/memory/gc/configure endpoint to allow for dynamic reconfiguration of GC behavior.

…ing endpoints

- Add PYTHON_GC_THRESHOLD env var to configure garbage collection thresholds
- Add POST /debug/memory/gc/configure endpoint for runtime GC tuning
- Enhance memory debugging endpoints with better structure and explanations
- Add comprehensive router and cache memory tracking
- Include worker PID in all debug responses for multi-worker debugging
@vercel
Copy link

vercel bot commented Oct 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Oct 17, 2025 11:57pm

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

@AlexsanderHamir AlexsanderHamir changed the title [Feature] - Add memory profiling endpoint for across workers [Feature] - Add memory profiling endpoint across workers Oct 18, 2025
@AlexsanderHamir AlexsanderHamir merged commit 044b6f3 into litellm_oct_alexsander_staging_2 Oct 18, 2025
18 of 43 checks passed
AlexsanderHamir added a commit that referenced this pull request Oct 18, 2025
This reverts commit 044b6f3, reversing
changes made to a32208b.

The change has already been cherry-picked locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant