问题描述
我正在尝试使用 Micronaut 应用程序作为发现的 Graalvm 本机映像 here.
但是当我运行 ./gradlew buildNativeLambda
时,我遇到了以下异常:
Error: Image build request Failed with exit status 137
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request Failed with exit status 137
at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1772)
at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1519)
at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1480)
at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1467)
> Task :dockerBuildNative Failed
FAILURE: Build Failed with an exception.
Google 说这可能是内存不足异常,但我找不到如何解决它的任何示例。 我正在从 link 构建示例项目而没有修改它,但我无法使其工作。我是否缺少一些配置才能正常工作? 我正在使用 16g 内存的 Mac。