From c44ec55fbd0028c6319fcd7e513742eaa101817e Mon Sep 17 00:00:00 2001 From: Wessel Nieboer Date: Wed, 9 Feb 2022 16:13:26 +0100 Subject: [PATCH] Suggestion to set -F1.25 The -F RTS param is used to indicate the next old generation heap size after a collect. By default the parameter is 2. This means, when your heap is 2 GB after old generation collect, heap will be sized to 4 GB next time. This might be excessive for small memory devices. -F1.25 means the next heap will scale to 125% of the old generation live memory. --- source/main/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main/config.ts b/source/main/config.ts index f5b24e03b0..a1ff54619f 100644 --- a/source/main/config.ts +++ b/source/main/config.ts @@ -183,4 +183,4 @@ export const MINIMUM_AMOUNT_OF_RAM_FOR_RTS_FLAGS = 16 * 1024 * 1024 * 1024; // 1 export const MOCK_TOKEN_METADATA_SERVER_URL = 'http://localhost'; export const MOCK_TOKEN_METADATA_SERVER_PORT = process.env.MOCK_TOKEN_METADATA_SERVER_PORT || 0; -export const RTS_FLAGS = ['-c']; +export const RTS_FLAGS = ['-c', '-F1.25'];