getsentry / getsentry/sentry-python

Significant memory increase after upgrading sentry-sdk from 2.20.0 to 2.59.0

オープン
#6,263 コメント 18 件 リアクション 0 件 担当者 1 名 @ericapisani が担当を希望しています GitHub で見る
Bug Python State: Needs Discussion
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

### How do you use Sentry?

Sentry Saas (sentry.io)

### Version

2.59.0

### Steps to Reproduce

Python: 3.12
Django: 5.1

We upgraded the Python SDK from `sentry-sdk[celery,django]==2.20.0` to `sentry-sdk[celery,django]==2.59.0` and observed a large increase in memory usage, from 50% to 85%.

The screenshot below shows memory dropping back down after we reverted the upgrade, on a Django app with no traffic.

In both versions, only error tracking is enabled (no performance/tracing, no profiling).

Memory usage before and after reverting the SDK upgrade

### Expected Result

Memory usage remains stable after upgrading sentry-sdk from 2.20.0 to 2.59.0, with no significant change in baseline RSS for a Django app under the same load (or no load).

### Actual Result

After upgrading sentry-sdk[celery,django] from 2.20.0 to 2.59.0, baseline memory usage on our Django app increased from ~50% to ~85%, even with no incoming traffic. Memory returned to previous levels immediately after reverting the upgrade.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。