Docker/Java aarch64 Bookmarks

Published: 2023-02-20, Updated: 2023-02-20

Como rodar / buildar imagens aarch com docker

Passos para montar o ambiente

Preparar o ambiente do docker para buildar / rodar

Em caso de querer buildar com java, precisa mudar a forma de fazer fork de processos

java -Djdk.lang.Process.launchMechanism=fork

# or 
export JAVA_TOOL_OPTIONS=-Djdk.lang.Process.launchMechanism=fork && java ...

As opções

More about fork and vfork TL;DR; use fork




Java 13: Default Process launch mechanism on Linux now uses posix_spawn. Runtime.exec() and ProcessBuilder, on Linux now use posix_spawn(3) to spawn child processes. This increases reliability and performance in low-memory situations. [1]

arm, arm64, aarch64, docker

Protocolos de Comunicação Fontes Bookmarks