From: Jane Sandberg Date: Tue, 20 Sep 2022 13:40:03 +0000 (-0700) Subject: Docs: LP1863921 max-old-space-size param when building angular X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a684ab17ba4d0a8c4b3570c28d4855ee4ab27b2f;p=Evergreen.git Docs: LP1863921 max-old-space-size param when building angular Signed-off-by: Jane Sandberg Signed-off-by: Andrea Buntz Neiman --- diff --git a/docs/modules/installation/pages/server_installation.adoc b/docs/modules/installation/pages/server_installation.adoc index 361a643c35..9a2d68b00a 100644 --- a/docs/modules/installation/pages/server_installation.adoc +++ b/docs/modules/installation/pages/server_installation.adoc @@ -178,7 +178,18 @@ npm install # fetch JS dependencies + [source,sh] ------------------------------------------------------------------------------ -ng build --prod +ng build --configuration=production +------------------------------------------------------------------------------ ++ +This can be a memory-intensive build. If the process does not finish, and you +get the message "Killed" in the console, try running it with +https://nodejs.org/api/cli.html#cli_max_old_space_size_size_in_megabytes[an explicit max-old-space-size option] +to encourage more garbage collection. For example, on a machine with 4GB of +memory, you can limit max-old-space-size to 3GB with: ++ +[source,sh] +------------------------------------------------------------------------------ +NODE_OPTIONS=--max-old-space-size=3072 ng build --configuration=production ------------------------------------------------------------------------------ + 4. OPTIONAL: Test eg2 web client code if the -developer packages and