flowable / flowable/flowable-engine

Tomcat reports leak due to UserIdPrincipal not destroying ThreadLocal upon stopping

Open
#3,609 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

I run a web application that includes flowable inside an Apache Tomcat servlet container running under Linux debian.

When reloading the application multiple errors identical to this one are reported in tomcat's `catalina.out`.

> [2023-02-28 10:18:28] [crit] The web application [my-application] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@6641b2af]) and a value of type [org.flowable.common.engine.impl.identity.UserIdPrincipal] (value [org.flowable.common.engine.impl.identity.UserIdPrincipal@7342689d]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

My web app uses flowable `7.0.0.M1` installed from maven. I run tomcat 10.1.6 under debian 12 (bookworm).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.