File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,11 +319,16 @@ The Java 17, Java 21 and 25 runtimes can benefit from extra user configuration w
319319The default entrypoint used to boot the JVM is generated by App Engine Buildpacks.
320320Essentially, it is equivalent to define this entrypoint in the `appengine-web.xml` file. For example:
321321
322- <pre><entrypoint>java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED -showversion -Xms32M -Xmx204M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+PrintCommandLineFlags -Dclasspath.runtimebase=/base/java_runtime -Djava.class.path=/base/java_runtime/runtime-main.jar -Djava.library.path=/base/java_runtime: com/google/apphosting/runtime/JavaRuntimeMainWithDefaults --fixed_application_path=/workspace /base/java_runtime</entrypoint></pre>
322+ <pre style="white-space: pre-wrap; word-wrap: break-word;"><entrypoint>java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.logging/java.util.logging=ALL-UNNAMED -showversion -Xms32M -Xmx204M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+PrintCommandLineFlags -Dclasspath.runtimebase=/base/java_runtime -Djava.class.path=/base/java_runtime/runtime-main.jar -Djava.library.path=/base/java_runtime: com.google.apphosting.runtime.JavaRuntimeMainWithDefaults --fixed_application_path=/workspace /base/java_runtime</entrypoint></pre>
323+
324+
325+ For Java25, the base layer is in the builder image under `/layers/google.java.appengine/java_runtime`, so:
326+
327+ <pre style="white-space: pre-wrap; word-wrap: break-word;"><entrypoint>java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.logging/java.util.logging=ALL-UNNAMED -showversion -Xms32M -Xmx204M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+PrintCommandLineFlags -Dclasspath.runtimebase=/layers/google.java.appengine/java_runtime -Djava.class.path=/layers/google.java.appengine/java_runtime/runtime-main.jar -Djava.library.path=/layers/google.java.appengine/java_runtime: com.google.apphosting.runtime.JavaRuntimeMainWithDefaults --fixed_application_path=/workspace /layers/google.java.appengine/java_runtime</entrypoint></pre>
323328
324329We do not recommend changing this default entrypoint as the memory settings are calculated based on the instance type (F1, F2, F4) and memory available.
325330
326- By default, we use `--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED` to open some necessary JDK APIs.
331+ By default, we use `--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.util.concurrent =ALL-UNNAMED` to open some necessary JDK APIs.
327332
328333
329334## Entry Point Features
You can’t perform that action at this time.
0 commit comments