-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Trying to perform basic first-run installation tasks immediately fails on Ubuntu 18.04 with 16 GB of memory, of which 7 GB is available. The same also happens natively, without the Docker container, but it's handier for reproduction.
Step 6/7 : RUN bin/gu install python
---> Running in 78c0b49ce4f8
Downloading: Component catalog
Processing component archive: Component python
Downloading: Component python
Installing new component: Graal.Python (org.graalvm.python, version 1.0.0-rc4)
IMPORTANT NOTE:
---------------
Set of Graal VM components that provide language implementations have changed. The Polyglot native image and polyglot native C library may be out of sync:
- new languages may not be accessible
- removed languages may cause the native binary to fail on missing resources or libraries.
To rebuild and refresh the native binaries, use the following command:
/graal/jre/bin/gu rebuild-images
Removing intermediate container 78c0b49ce4f8
---> 303b0afe5e0c
Step 7/7 : RUN bin/gu rebuild-images polyglot
---> Running in c44218fceb90
Building polyglot...
classlist: 3,255.61 ms
(cap): 1,077.35 ms
setup: 3,360.95 ms
GraalVM 1.0.0-rc4 warning: INFO: os::commit_memory(0x0000000523180000, 2804416512, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2804416512 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /graal/hs_err_pid47.log
Error: Image building with exit status 1
The command '/bin/sh -c bin/gu rebuild-images polyglot' returned a non-zero code: 1
Right after the crash:
$ free -m
total used free shared buff/cache available
Mem: 15979 8129 6746 569 1102 6950
Swap: 2047 1861 186
Dockerfile available at https://github.com/mikaelhg/nobody-has-tested-basic-graal-installation.
Build command:
docker build -t graal-installation https://github.com/mikaelhg/nobody-has-tested-basic-graal-installation.gitMetadata
Metadata
Assignees
Labels
No labels