Skip to content

Commit

Permalink
fix: conditionally set the jvm mem flags
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Nov 8, 2024
1 parent fe4bcd3 commit 002c440
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/docker/update-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ echo "VERSION=$project_version" > .env
echo "REGISTRY_PREFIX=" >> .env
# Storage root path, this is temporary until we have a proper .properties file for all configs
echo "BLOCKNODE_STORAGE_ROOT_PATH=/app/storage" >> .env
echo "JAVA_OPTS='-Xms16G -Xmx16G'" >> .env

if [ true = "$is_debug" ]; then
# wait for debugger to attach
Expand All @@ -29,6 +28,10 @@ if [ true = "$is_smoke_test" ]; then
# add smoke test variables
echo "MEDIATOR_RING_BUFFER_SIZE=1024" >> .env
echo "NOTIFIER_RING_BUFFER_SIZE=1024" >> .env
echo "JAVA_OPTS='-Xms4G -Xmx4G'" >> .env
else
# Set the production default values
echo "JAVA_OPTS='-Xms16G -Xmx16G'" >> .env
fi

# Output the values
Expand Down

0 comments on commit 002c440

Please sign in to comment.