Skip to content

valeevr/spring-leak-reproducer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-leak-reproducer

This repository is a minimal reproducer for a leak exception coming from netty. It's using the scheduled functionality to call a function oftent to reproduce it more consistently.

setup

  • start the database (can be done with docker compose up, alternatively a postgresql is needed with the credentials matching the application.yml)
  • start the app (./mvnw spring-boot:run)
  • after around ~3 minutes, the exception should have been thrown at least once already

diagnosis

gathered info during reproduction phase:

  • the .reduce() in the CommandService class in line 35 seems to be the faulty line
  • exchanging it with a .collectList().map { l -> l.sum() } results in no error thrown

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%