Closed SergeyMagid closed 4 years ago
The line
Picked up JAVA_TOOL_OPTIONS: -Djava.security.properties=/layers/paketo-buildpacks_bellsoft-liberica/java-security-properties/java-security.properties -agentpath:/layers/paketo-buildpacks_bellsoft-liberica/jvmkill/jvmkill-1.16.0-RELEASE.so=printHeapHistogram=1 -XX:ActiveProcessorCount=4 -Xmx400m -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=95268K -XX:ReservedCodeCacheSize=240M -Xss1M -Dorg.springframework.cloud.bindings.boot.enable=true
is printed by the JVM itself, not by any part of the buildpack. So the JVM is telling you that it's seen your -Xmx400m
when it starts. $JAVA_TOOL_OPTIONS
is a JVM-native way of passing in JVM flags in headless environments since $JAVA_OPTS
is a convention, but is not understood by the JVM directly. If you were to fire up JVisualVM, and looked at the memory configuration from inside the JVM, you'd see that you configuration took.
Thank you.
Hi, In last version of buildpack I can not add my custom JAVA_OPTS.
Steps:
./mvnw spring-boot:build-image
.run -e "JAVA_OPTS=-Xmx400m" library/awesome_app:0.0.1-SNAPSHOT
Then I see at logs my params.
But any params was passed to jar