1
0
mirror of https://github.com/google/nomulus synced 2026-05-30 11:36:39 +00:00

Fix Jetty start script (#2958)

Script broken by inlined comment in multi-line command with backslash.

Refactored into comment-safe format.
This commit is contained in:
Weimin Yu
2026-02-17 18:17:58 +00:00
committed by GitHub
parent 88906f1bd9
commit 8ff4d7dc8a

View File

@@ -27,10 +27,13 @@ case "${CONTAINER_NAME}" in
"frontend"|"console")
PROFILER_ARGS="-agentpath:/opt/cprof/profiler_java_agent.so=-cprof_service=${CONTAINER_NAME},-cprof_enable_heap_sampling=true"
esac
java $PROFILER_ARGS \
# Allocate bigger than default fraction of available memory to the application, as it's running in a (single-purposed) container.
-XX:InitialRAMPercentage=50.0 \
-XX:MaxRAMPercentage=50.0 \
-Dgoogle.registry.environment=${env} \
-Djava.util.logging.config.file=/logging.properties \
JVM_OPTS=(
# Allocate bigger than default fraction of available memory to the
# application, as it's running in a (single-purposed) container.
-XX:InitialRAMPercentage=50.0
-XX:MaxRAMPercentage=50.0
-Dgoogle.registry.environment="${env}"
-Djava.util.logging.config.file=/logging.properties
-jar /usr/local/jetty/start.jar
)
java $PROFILER_ARGS "${JVM_OPTS[@]}"