Description
ThreadPools> 12887 total threads. Threadpools with more than 5 threads: Timer (12711 threads)
Which led to:
app/worker.7 java.lang.OutOfMemoryError: unable to create new native
app/worker.7 at java.lang.Thread.start0(Native Method)
app/worker.7 at java.lang.Thread.start(Thread.java:719)
app/worker.7 at java.util.Timer.(Timer.java:176)
app/worker.7 at java.util.Timer.(Timer.java:146)
app/worker.7 at io.sentry.SentryTracer.(SentryTracer.java:68)
|
private final @NotNull Timer timer = new Timer(true); |
SentryTracer#timer only if
idleTimeout != null apparently.
Also LifecycleWatcher#timer only if enableSessionTracking is enabled.
Description
ThreadPools> 12887 total threads. Threadpools with more than 5 threads: Timer (12711 threads)
Which led to:
app/worker.7 java.lang.OutOfMemoryError: unable to create new native
app/worker.7 at java.lang.Thread.start0(Native Method)
app/worker.7 at java.lang.Thread.start(Thread.java:719)
app/worker.7 at java.util.Timer.(Timer.java:176)
app/worker.7 at java.util.Timer.(Timer.java:146)
app/worker.7 at io.sentry.SentryTracer.(SentryTracer.java:68)
sentry-java/sentry/src/main/java/io/sentry/SentryTracer.java
Line 68 in b571aae
SentryTracer#timeronly ifidleTimeout != nullapparently.Also
LifecycleWatcher#timeronly ifenableSessionTrackingis enabled.