Skip to content

Native build uses a lot of memory #494

Closed
@ditogam

Description

@ditogam

Describe the problem
We are using AWS Codebuild to make native image using with graalvm-ce-java17-22.3.2. CodeBuild runs on ubuntu compute type general1.large, which has 8 vcpu and 15 GB of memory.

./gradlew nativeCompile

We tried to move to new graalvm version 17.0.8, downloading from site. After running the build, it failed with exit code 137. As I saw it's due to OutOfMemory.

We also tested same build on desktop pc and build memory usage exceeded 17GB.

Can you help with this issue?

Also, build generates libawt.so and other libraries in output
image

We use AWT to generate image in our app, it fails with java.home property not set as shown in [native-image] java.home property not set

System Info (please complete the following information):

  • OS: [e.g. Ubuntu 22.04.3 LTS]
  • GraalVM Version [e.g. 17.0.8+9.1 (build 17.0.8+9-LTS-jvmci-23.0-b14)]
  • Java Version [e.g. 17]
  • Plugin version [e.g. native-gradle-plugin:0.9.25]

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions