Giter Club home page Giter Club logo

Comments (3)

ilopmar avatar ilopmar commented on August 19, 2024

You need to make sure you have enough memory and configure Docker to use it.

from micronaut-creating-first-graal-app.

dfernandezm avatar dfernandezm commented on August 19, 2024

Thanks! I got it to build giving 6GB to docker on Mac... but how would this work in a CI environment where memory could be more contentious?

from micronaut-creating-first-graal-app.

ilopmar avatar ilopmar commented on August 19, 2024

I always recommend giving it at least 8GB of RAM. Depending on the application it may need even more RAM.

For CI environments, you have two options:

  • It may take more time because during the generating of the native image there is no much memory and the process starts swapping. At the end you get the native image but instead of taking 3 minutes to build it, it takes 20.
  • It fails with an OOM (like happened to you), the only option is to increase the RAM.

This happens to us when doing the integration tests between Micronaut and GraalVM and for some applications we have specific runners with more RAM because with the Gitlab CI shared runners we simply can't build those apps.

I'm closing this issue but feel free to comment here if you need anything else :)

from micronaut-creating-first-graal-app.

Related Issues (9)

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.