Skip to content

Significant memory usage #3182

@RobicToNieMaKomu

Description

@RobicToNieMaKomu

Integration

sentry-spring-boot-starter-jakarta

Java Version

17

Version

7.1.0

Steps to Reproduce

Our service is running on SB 3.1.8 & reactive stack (Webflux).

  1. Baseline. Without Sentry, memory consumption oscillates around 700 Mb (committed ~900 Mb, and max is 1.88 Gb).
    image
  2. After enabling integration on the defaults (with tracing disabled), mem usage went up to the ceiling
    image
sentry:
  dsn: ...
  enabled: false
  enableTracing: false
  environment: dev
  serverName: server
  shutdownTimeout: 0
  1. After further tuning, I was able to reduce the memory:
    image
      SENTRY_MAXBREADCRUMBS: 1
      SENTRY_ENABLEUSERINTERACTIONBREADCRUMBS: false
      SENTRY_DIAGNOSTICLEVEL: fatal
      SENTRY_MAXCACHEITEMS: 0
      SENTRY_ATTACHSTACKTRACE: false

However, the situation is still unacceptable, as integration increased RAM usage by 50% (!).
Can we do something to make it better? Can breadcrumbs be entirely disabled? They are useless in our case as they are not correlated with the request causing an actual error.

Expected Result

Sane memory/CPU footprint.

Actual Result

Gigantic memory consumption.

Metadata

Metadata

Assignees

Labels

BugIssue type
No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions