Skip to content

[Bug]: [java] Memory leak in long working tests #1841

@piotrczarnak

Description

@piotrczarnak

Version

1.52.0

Steps to reproduce

You need docker to run this project
https://github.com/piotrczarnak/bug-1816_spring
Steps to reproduce:

  1. Download repo
    2 .Go to project with terminal and use docker build -t [imagename] .
  2. docker run --init --ipc=host -t [tagoimagefrom2ndpoint] mvn compile exec:java -D exec.mainClass="org.example.App"
  3. Wait ~4h and you will see memory consumption growing.

To check memory consumption per process use stem -t (already installed)

Expected behavior

Memory consumption stays on the same level.

Actual behavior

I have constantly running tests in docker container. Each hour I see memory consumption is growing even though I close each test page, browser and playwright itself. Test stared with 456 MB and after 8h it reached 4GB

Image

Additional context

Tests are run in docker container which is created by myself. Tests are run each 1000 ms.

I noticed that there are many not closed processes. After using stem -t

Image

Environment

OS: jvm-ubuntu:21
Language: Java

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions