Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
EASY-2235: Include INITIAL_HEAP_SIZE java cmd argument (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindareijnhoudt authored Sep 3, 2019
1 parent c6146d9 commit de7fe8c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/assembly/dist/install/easy-deposit-api.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
Description=EASY Deposit Api Service

[Service]
# MAX_HEAP_SIZE is specified in memusage.conf
ExecStart=/bin/java \
$INITIAL_HEAP_SIZE \
-Dlogback.configurationFile=/etc/opt/dans.knaw.nl/easy-deposit-api/logback-service.xml \
-Dapp.home=/opt/dans.knaw.nl/easy-deposit-api \
-Dorg.scalatra.environment="production" \
Expand Down
2 changes: 2 additions & 0 deletions src/main/assembly/dist/install/memusage.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
Environment="INITIAL_HEAP_SIZE=-Xms64m"
3 changes: 2 additions & 1 deletion src/main/rpm/2-post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ PHASE="POST-INSTALL"

echo "$PHASE: START (Number of current installations: $NUMBER_OF_INSTALLATIONS)"
service_install_initd_service_script "$INSTALL_DIR/install/$MODULE_NAME-initd.sh" $MODULE_NAME
service_install_systemd_unit "$INSTALL_DIR/install/$MODULE_NAME.service" $MODULE_NAME "$INSTALL_DIR/install/override.conf"
service_install_systemd_unit "$INSTALL_DIR/install/$MODULE_NAME.service" $MODULE_NAME "$INSTALL_DIR/install/charset.conf"
service_install_systemd_unit "$INSTALL_DIR/install/$MODULE_NAME.service" $MODULE_NAME "$INSTALL_DIR/install/memusage.conf"
service_create_log_directory $MODULE_NAME
echo "$PHASE: DONE"

Expand Down

0 comments on commit de7fe8c

Please sign in to comment.