简体   繁体   中英

How to set heap size for Quarkus app using Jib container image?

I'm Quarkus 1.11.0 and trying to set the heap size of my app using...

quarkus.jib.jvm-arguments=-Xms1024m -Xmx1024m -agentpath:/app/resources/libyjpagent.so=listen=all also tried with capital M and I get Invalid initial heap size and the app exits.

I also tried through the env JAVA_OPTS and JAVA_TOOL_OPTIONS and these don't seem to do anything, the app just runs but the heap size is not set.

You can use quarkus.jib.jvm-additional-arguments if you just want to add arguments.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM