A am trying to build and sbt 0.13.13 docker image similar to this one. Running java $JAVA_OPTS -jar sbt-launch.jar
(as a step of building the image) fails with:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d3026000, 451256320, 0) failed; error='Out of memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 451256320 bytes for committing
reserved memory.
Increasing -Xmx
doesn' help. What can I do to fix this? This is the Dockerfile: https://github.com/kolov/k8s-stuff/blob/master/scala/Dockerfile
Increase the swap space of the hardisk using the following commands
sudo dd if=/dev/zero of=/var/myswap bs=1M count=2048
sudo mkswap /var/myswap
sudo swapon /var/myswap
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With