Skip to content

a-simoes/quarkus-memory-leak-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quarkus-memory-leak

A memory leak analysis

This project is based on a Quarkus quickstarts project

Github repository with getting-started

Tag 1.12.1 contains the memory leak under investigation

Tag 1.12.2 has the issue fixed!

Issue reference

Changes to base project

  1. Remove files to the minimum

  2. Log something to expose the issue

    • For this example we use the default logger org.jboss.logging.Logger
    • Quarkus uses JBoss Log Manager and the JBoss Logging facade.
  3. Create a load test

The code

Build the code with the issue

cd code

mvn clean install

Build the code with the issue fixed

mvn clean install -P withoutIssue

Start application

java -jar target/quarkus-app/quarkus-run.jar

Open your browser and validate

Reduce heap memory to speed up things

java -Xms100m -Xmx100m -jar target/quarkus-app/quarkus-run.jar

The test written using jmeter-java-dsl

run tests

cd load-test

mvn test

check the report for performance comparisons

google-chrome html-report/index.html

About

A memory leak analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages