File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff 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"
2929esac
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[@]} "
You can’t perform that action at this time.
0 commit comments