Coder Social home page Coder Social logo

Comments (10)

u6f6o avatar u6f6o commented on August 18, 2024 1

@franz1981 I am no expert on this topic but this is one of the applications that ran into an OOM:
image
The jvm started with the desired committed heap (InitialRAMPercentage) but after a while it was shrinked. I found this on a redhat blog post:
image
Source: https://developers.redhat.com/blog/2017/04/04/openjdk-and-containers

Are you mentioning OOM at java level or due to OS OOM killer?

OOM on java level

from quarkus.

geoand avatar geoand commented on August 18, 2024 1

I'll leave it up to @franz1981 to decide

from quarkus.

quarkus-bot avatar quarkus-bot commented on August 18, 2024

You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip

This message is automatically generated by a bot.

from quarkus.

quarkus-bot avatar quarkus-bot commented on August 18, 2024

/cc @geoand (jib,kotlin)

from quarkus.

geoand avatar geoand commented on August 18, 2024

@jmtd I wonder if the choice for these flags needs to be revisited.

I'll cc @franz1981 in this discussion as well as he likely has plenty of knowledge to contribute

from quarkus.

u6f6o avatar u6f6o commented on August 18, 2024

I forgot to share one thought in my initial post: According to my current knowledge, the jvm flags are put into a Properties object (thus a HashTable underneath) which means that the last flag provided wins (e.g. -XX:MaxRAMPercentage=80.0, -XX:MaxRAMPercentage=40.0 would lead to -XX:MaxRAMPercentage=40.0. (We currently try to reset the defaults by providing custom jib jvm flags).

I don't know though, which rules apply to"switchable" flags, like -XX:+ExitOnOutOfMemoryError,-XX:-ExitOnOutOfMemoryError. Does - or + win in such a case? Kind of the same situation if we want to use a different GC.

from quarkus.

franz1981 avatar franz1981 commented on August 18, 2024

We experienced these problems in the past as well (~1 year ago) and found out that these OOMs were caused by the resizing of the committed heap

Can you share more about this instead? G1 can return back heap memory (uncommitted) enabling periodic GCs, but I didn't hear anything about OOM cause by such. Are you mentioning OOM at java level or due to OS OOM killer?

from quarkus.

u6f6o avatar u6f6o commented on August 18, 2024

We went for a workaround that resets the new jvm flags to their defaults:

image

The OOMs are gone now and our quarkus applications run smoothly again as they did before the quarkus update to 3.7 happened.

from quarkus.

geoand avatar geoand commented on August 18, 2024

Thank you very much for the update!

from quarkus.

u6f6o avatar u6f6o commented on August 18, 2024

@geoand : but why did you close it? Just because we found a workaround, this is still a bug imho? Up to my understanding, quarkus is supposed to run in different scenarios like typical every day joe webservers as well as heavy lifting batch jobs? Choosing a parallelGC and a very offensive heap shrinking behaviour as default is a very bad approach especially for the later one imo.

from quarkus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.