apache / apache/maven-surefire

[SUREFIRE-2185] Out Of memory after 6000 tests

Open
#2,690 1 comment 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[Thomas Landuyt](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=thomas.landuyt)** opened **[SUREFIRE-2185](https://issues.apache.org/jira/browse/SUREFIRE-2185?redirect=false)** and commented

Hi,

We are running lots of junit 5 tests ( +5000) but we are always arriving in a out of memory for the maven surefire plugin as it seems it is keeping a lot of info into the heap space, we raised internally already to -Xmx8GB but seems still not enough, do you see any improvements we still can make?
we already remove big parts of our logging, but seems that it is still filling up memory
!image-2023-07-10-11-54-36-346.png!

---

**Attachments:**
- [image-2023-07-10-11-54-36-346.png](https://issues.apache.org/jira/secure/attachment/13061159/image-2023-07-10-11-54-36-346.png) (_36.13 kB_)

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the out-of-memory failure with JUnit 5 and more than 5,000 tests under the Maven Surefire plugin, using the attached memory evidence and reported heap settings as context; done means identifying the retained memory and verifying a fix or actionable configuration guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.