Skip to content

Commit

Permalink
Suggestion to set -F1.25
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weebl2000 committed Feb 9, 2022
1 parent 8f57306 commit c44ec55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

0 comments on commit c44ec55

Please sign in to comment.