Skip to content

Native-image of CLI application is failing with less than 32 GB of virtual memory #8476

Closed
@munishchouhan

Description

@munishchouhan

Describe the issue
Our CLI native-image is failing when there is less than 32 GB of virtual memory

Steps to reproduce the issue
Please include both build steps as well as run steps

  1. Download https://github.com/seqeralabs/wave-cli/releases/download/v1.2.0/wave-1.2.0-linux-x86_64
  2. run: (ulimit -v 33603487; ./wave-1.2.0-linux-x86_64 --version)

Describe GraalVM and your environment:

  • GraalVM version : graalvm-jdk-21.0.2+13.1
  • JDK major version: 21
  • OS: Ubuntu 22.04.1
  • Architecture: AMD64

More details
Build logs:
https://github.com/seqeralabs/wave-cli/actions/runs/8005072271/job/21863704006

Source code of application:
https://github.com/seqeralabs/wave-cli/

we have already set the heap size:
https://github.com/seqeralabs/wave-cli/blob/b47f31f54c64aa8d1f1b2d1d20443d939e3c9eee/app/build.gradle#L86-L89

Error:

~$ (ulimit -v 33603487; ./wave-1.2.0-linux-x86_64 --version)
Fatal error: Failed to create the main Isolate. (code 801)
~$ (ulimit -v 33603488; ./wave-1.2.0-linux-x86_64 --version)
1.2.0_b47f31f

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions