-
-
Notifications
You must be signed in to change notification settings - Fork 201
Description
Bug
jooby-netty shows increasing memory and CPU usage under repeated HTTP traffic.
After traffic stops, usage stays high instead of returning to baseline.
Environment
- Jooby: 4.0.15
- JDK: 21
- Netty server
- Reproducer: https://github.com/NastyaYarotskas/reproduce-jobby-netty-leak
Steps to reproduce
mvn clean package./runJar.bat- Send ~500 req/s with any HTTP request for ~30 min
- Stop traffic and observe metrics
Expected
Memory/CPU should drop close to baseline after traffic stops.
Actual
Memory/CPU remain elevated; object counts keep growing across bursts.
Observations
scheduledTaskQueuekeeps growingNettyString/NettyDateServiceare not fully released
Possible cause
NettyDateService is created per connection and schedules periodic tasks (scheduleAtFixedRate(...)) that appear not to be cancelled on channel close.
Reactions are currently unavailable