Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GraalVM で作成されたネイティブ イメージのヒープ サイズを制御するにはどうすればよいnative-imageですか?
native-image
ネイティブ イメージは通常の JVM-Xmx引数を評価しますか?
-Xmx
-Xmx{n}コマンドラインパラメータでヒープサイズを指定できます。例えば、
-Xmx{n}
./your-native-binary -Xmx16m
Substrate VM に 16m のヒープ サイズを設定します。-XX:+PrintGCガベージ コレクターのアクティビティをチェックするフラグを追加することもできます。
-XX:+PrintGC
./your-native-binary -XX:+PrintGC -XX:+PrintGCTimeStamps -Xmx16m