Comments (3)
You need to make sure you have enough memory and configure Docker to use it.
from micronaut-creating-first-graal-app.
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.
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)
- Update to GraalVM 1.0-rc7 HOT 3
- gradle build of 'initial' project fails at 'Could not find io.micronaut:bom:1.0.0-SNAPSHOT.'
- Update to Micronaut 2.0 HOT 1
- oracle/graalvm-ce docker image does not exist anymore HOT 7
- The `complete` app does not build HOT 2
- Gradle assemble fails on Windows 10 WSL HOT 1
- Native image generation fails on Mac OSX HOT 2
- @Introspection for kotlin data classes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micronaut-creating-first-graal-app.