native-build-tools icon indicating copy to clipboard operation
native-build-tools copied to clipboard

how to set the -Xmx 512m like java to control the heap size

Open YangQiang-ChengDu opened this issue 2 years ago • 1 comments

I want to control native execable max heap size ,like - Xmx 512 using in java What should I do?

YangQiang-ChengDu avatar Jul 14 '23 00:07 YangQiang-ChengDu

https://www.graalvm.org/22.3/reference-manual/native-image/optimizations-and-performance/MemoryManagement/

wghdir avatar Jul 15 '23 14:07 wghdir

@YangQiang-ChengDu you have to use

-Xmx512

instead of

- Xmx 512

dnestoro avatar Jan 30 '25 15:01 dnestoro