Payara Server is an open source middleware platform that supports reliable and secure deployments of Java EE (Jakarta EE) and MicroProfile applications in any environment: on premise, in the cloud or hybrid.
Looks like https://github.com/payara/Payara/pull/6637 introduced a regression.
ContainerBackgroundSessionProcessor threads aren't getting removed when an application is undeployed.
Looking at the code, I don't see any obvious issues, but thread dumps show that the threads are dangling.
This prevents application from unloading and creates more memory leaks, and prevents #6677 from working.
I will try to debug and see what I can find out, and submit a PR if I can.
But currently, I can't see any obvious cause of this.
Expected Outcome
ContainerBackgroundSessionProcessor threads exit when application is unloaded
Current Outcome
Dangling ContainerBackgroundSessionProcessor
As you can see in the image below, there are more ContainerBackgroundSessionProcessor threads than ContainerBackgroundProcessor threads, which is wrong
Reproducer
Any WAR application will show this behavior
Operating System
Any
JDK Version
Any
Payara Distribution
Payara Server Full Profile, Payara Server Web Profile
Brief Summary
Looks like https://github.com/payara/Payara/pull/6637 introduced a regression.
ContainerBackgroundSessionProcessor
threads aren't getting removed when an application is undeployed.Looking at the code, I don't see any obvious issues, but thread dumps show that the threads are dangling. This prevents application from unloading and creates more memory leaks, and prevents #6677 from working.
I will try to debug and see what I can find out, and submit a PR if I can. But currently, I can't see any obvious cause of this.
Expected Outcome
ContainerBackgroundSessionProcessor
threads exit when application is unloadedCurrent Outcome
Dangling
ContainerBackgroundSessionProcessor
As you can see in the image below, there are moreContainerBackgroundSessionProcessor
threads thanContainerBackgroundProcessor
threads, which is wrongReproducer
Any WAR application will show this behavior
Operating System
Any
JDK Version
Any
Payara Distribution
Payara Server Full Profile, Payara Server Web Profile