Skip to content

Commit 8ff4d7d

Browse files
authored
Fix Jetty start script (#2958)
Script broken by inlined comment in multi-line command with backslash. Refactored into comment-safe format.
1 parent 88906f1 commit 8ff4d7d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

jetty/start.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ case "${CONTAINER_NAME}" in
2727
"frontend"|"console")
2828
PROFILER_ARGS="-agentpath:/opt/cprof/profiler_java_agent.so=-cprof_service=${CONTAINER_NAME},-cprof_enable_heap_sampling=true"
2929
esac
30-
java $PROFILER_ARGS \
31-
# Allocate bigger than default fraction of available memory to the application, as it's running in a (single-purposed) container.
32-
-XX:InitialRAMPercentage=50.0 \
33-
-XX:MaxRAMPercentage=50.0 \
34-
-Dgoogle.registry.environment=${env} \
35-
-Djava.util.logging.config.file=/logging.properties \
30+
JVM_OPTS=(
31+
# Allocate bigger than default fraction of available memory to the
32+
# application, as it's running in a (single-purposed) container.
33+
-XX:InitialRAMPercentage=50.0
34+
-XX:MaxRAMPercentage=50.0
35+
-Dgoogle.registry.environment="${env}"
36+
-Djava.util.logging.config.file=/logging.properties
3637
-jar /usr/local/jetty/start.jar
38+
)
39+
java $PROFILER_ARGS "${JVM_OPTS[@]}"

0 commit comments

Comments
 (0)