- Published on
深入分析 Python HTTP 服务长期运行后 RSS 内存只涨不降的原因,并给出 Gunicorn 的兜底方案:通过 max-requests 与 max-requests-jitter 让 worker 按请求数自动优雅重启,彻底回收泄漏内存与线程 arena。覆盖 gthread 与 UvicornWorker 两种部署形态、完整配置模板与监控方法。
Welcome to my blog, a personal space where I share technology, life experiences, and reflections.