-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading from 3.18.2 to 3.18.3 Results in OutOfMemoryError when using @QuarkusTest with Quarkus Junit 5 #46459
Comments
Thanks a lot for reporting! We absolutely want to fix this, but we will almost certainly need to have a way to reproduce the issue. |
@geoand, also produces error on |
I will try to come up with a reproducer. |
🙏🏽 |
What could help understanding what’s going on is to get a heap dump on OOM (I’m on my phone but you should find it easily) and have a closer look at what’s going on. If your tests don’t contain any private information, we can give you our emails so that you can share the dump if you’re not used to the exercise. Might give us some hints on how to reproduce it. |
I did a quick test, and in our case, when I created a custom |
Thanks for that information! That confirms that we are keeping something around that we shouldn't be. If you provide a heap dump or a sample project, I am pretty sure we can pinpoint the problem and fix it |
Maybe I should revert the change in the meantime? I still have time before I push 3.19.1 tomorrow. |
That being said, we probably want to get to the bottom of it so if we get more reports, it might help. |
Right, I think we can hold off on reverting and only do it we get a lot of complaints and no reproducers |
I am unable to provide a heap dump unfortunately due to company security policies. If it helps, we also use Testcontainers and |
If I find some time, I'll try to work on a reproducer. |
Could you have a look at the heap dumpsu using VisualVM or Eclipse MAT? There might be some very obvious culprits? |
Describe the bug
When upgrading from Quarkus
3.18.2
to3.18.3
our@QuarkusTest
s start to throwOutOfMemoryError
.It seems the issue is isolated in
quarkus-junit5
dependency or one of its transitives, when I upgrade the rest of dependencies and leave that, things work fine.Perhaps something to do with this change? But I'm not sure...
8203603
Expected behavior
Tests pass without
OutOfMemoryError
Actual behavior
Tests annotated with
@QuarkusTest
hang and eventually run out of memory with different errors each time.Example errors:
How to Reproduce?
No response
Output of
uname -a
orver
OSX and Linux
Output of
java -version
17.0
Quarkus version or git rev
3.18.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.12.1
Additional information
I've also tried version
3.19.0
and the issue has NOT been resolved.The text was updated successfully, but these errors were encountered: