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
Incredible use of RAM even on small example/rest-json #673
Comments
rest-json
Sounds like you do not like the amount of RAM spent by the native image compilation. If that's really the problem:
|
By the way you should not use a plain camel component like camel-jackson in Quarkus |
I didn't notice that! I used the example available from this repository and did not give a second look. I double checked and the current commit for master has it this way. I will change it to the adequate dependency and report back if there are any changes. |
Ok, cool to know. I was having issues with other projects when my system ran out of RAM and started swapping like crazy which made everything grind to a halt
Thank you. I will test this now |
I swapped the
Now it took more than twice as much time but I believe that increase might be due to the OS swapping pages into the harddrive (1.2GB). This did not occur in the previous test. I then tested with the memory limiting parameter
Now it takes more than triple the amount of time but it does not freeze up my system entirely (CPU 100% all the time but I think this is a good thing). Thank you for helping me out. I believe this to be a non-issue so I will close it. I'll try to push an update fixing the example so that it uses a quarkus-based dependency. |
GraalVM 19.3.1
OpenJDK 11.0.5
I have recently started exploring Quarkus for compiling some Camel projects down to native but I am having some serious RAM issues.
I have mistakenly tried some of my own projects before testing the examples provided here.
However, now that I have tried a simple camel-quarkus example as described in https://camel.apache.org/camel-quarkus/latest/first-steps.html, I can reliably say that there is an enormous use of RAM even for miniature projects.
Is this a known issue?
Is there a way to keep the use of RAM under control?
Is it because of my JDK version? (nobody should be starting projects on Java 8)
Am I doing something wrong?
How can I help?
I tried the
camel-quarkus/example/rest-json
project from the link. These are the compilation details:I have ~16GB RAM with 14GB available for compilation (-2GB on a fresh restart).
The example took 4min to complete and consumed almost the remaining 14GB RAM
This miniature has only 2 dependencies (managed by a camel parent):
The text was updated successfully, but these errors were encountered: