Skip to content

Commit

Permalink
Update amount of memory available for Java heap
Browse files Browse the repository at this point in the history
Properties files have 512MB headroom over and above the development heap size. Documented that convention.
  • Loading branch information
iay committed Aug 30, 2019
1 parent 8469213 commit 31b324a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,16 @@
This is used as the max heap setting for all Java invocations. This amount will
be more than some invocations require, but there's no harm in having a higher
limit for all of them.
Note that this value is often overridden in production contexts (see, for example,
prod.properties) to give the production environment extra headroom. The value is
kept lower here so that we'll get warnings in development before the production
environment is affected.
The overrides for production environments should be updated in step with the
value here whenever this is necessary.
-->
<property name="java.max.memory" value="1280m"/>
<property name="java.max.memory" value="1536m"/>


<!--
Expand Down
3 changes: 2 additions & 1 deletion preprod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ sign.uk.keyAlias = UKAMF_Signing_Key

#
# Give Java processes plenty of headroom in production.
# Update this whenever the value in build.xml is updated.
#
java.max.memory = 1536m
java.max.memory = 2048m

#
# Preprod uses different repositories from prod
Expand Down
3 changes: 2 additions & 1 deletion prod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ sign.uk.keyAlias = UKAMF_Signing_Key

#
# Give Java processes plenty of headroom in production.
# Update this whenever the value in build.xml is updated.
#
java.max.memory = 1536m
java.max.memory = 2048m

0 comments on commit 31b324a

Please sign in to comment.