Skip to content

Commit c44ec55

Browse files
committed
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.
1 parent 8f57306 commit c44ec55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/main/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ export const MINIMUM_AMOUNT_OF_RAM_FOR_RTS_FLAGS = 16 * 1024 * 1024 * 1024; // 1
183183
export const MOCK_TOKEN_METADATA_SERVER_URL = 'http://localhost';
184184
export const MOCK_TOKEN_METADATA_SERVER_PORT =
185185
process.env.MOCK_TOKEN_METADATA_SERVER_PORT || 0;
186-
export const RTS_FLAGS = ['-c'];
186+
export const RTS_FLAGS = ['-c', '-F1.25'];

0 commit comments

Comments
 (0)