-
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
java.lang.OutOfMemoryError: Java heap space - Quarkus 1.10.5.Final #14295
Comments
Can you analyze things a bit and analyze a memory dump of your application? Thanks. |
I'll take a quick look |
This happens because
There are a couple of options I see here:
@dmlloyd WDYT? |
I'd prefer something like option 1, but the problem is that AFAIK there's no real way to determine whether the app is indeed a Quarkus app, and there is also no real way to communicate that to the configurator might be set up quite early in boot. I guess that leaves option 2, which also stinks because you'd have to choose a fairly large limit in order to not lose legitimate messages at start. It's not a very clean solution. Perhaps a third option could be to change the |
Sure, that could work. |
…ation This is done by generating the Service file during build time instead of embedding it inside the quarkus-bootstrap-runner jar unconditionally Fixes: quarkusio#14295
…n't a Quarkus application Fixes: quarkusio#14295
I just tested the reproducer and you can work around it by doing:
This basically tells Java to just use the standard logmanager instead of the JBoss one. I don't think we can do any better than this, but I will see what others think before closing. |
I spent too much time trying to come up with a solution and no good one seems to exist. Furthermore the problem only shows up when only non Quarkus tests are executed - as soon as Quarkus test comes into play, it works. I'm in favor of closing the issue and my (crappy) PR |
I'll close this because we ended up adding an upper bound to the log entries |
Describe the bug
Difference in memory consumption between version 1.8.3 and 1.10.*
It can result in an OutOfMemoryError on a simple unit test using the ApachDS library.
Expected behavior
Use of 300 MB of memory instead of 2 GB +
Build succes with the unit test.
Actual behavior
To Reproduce
code-with-quarkus.zip
Steps to reproduce the behavior:
Environment (please complete the following information):
OpenJDK Runtime Environment (build 1.8.0_232-8u232-b09-0ubuntu1~19.04.1-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
Maven home: /opt/apache-maven-3.6.3
Java version: 1.8.0_232, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-26-generic", arch: "amd64", family: "unix"
The text was updated successfully, but these errors were encountered: