Libraryless. Click here for Pure Java version (4030L/25K/89K).
1 | !7 |
2 | |
3 | p { |
4 | S s = javaxDefaultVMArgs(), old = s; |
5 | print("Default VM Args: " + quote(s)); |
6 | s = s.replaceAll("-XX:MaxHeapFreeRatio=\\d+", ""); |
7 | s = s.replaceAll("-XX:MinHeapFreeRatio=\\d+", ""); |
8 | s = trim(s); |
9 | s = trim(s + " -XX:MaxHeapFreeRatio=20 -XX:MinHeapFreeRatio=10"); |
10 | if (!s.contains("-server")) s = trim("-server " + s); |
11 | if (!s.contains("-XX:+UseG1GC")) s = trim(s + " -XX:+UseG1GC"); |
12 | if (!s.contains("-XX:+UseStringDeduplication")) |
13 | s = trim(s + " -XX:+UseStringDeduplication"); |
14 | if (neq(old, s)) |
15 | setDefaultVMArgs(s); |
16 | else |
17 | print("Keeping."); |
18 | } |
Began life as a copy of #1008034
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011264 |
Snippet name: | Set Global JavaX Option: Even Smaller Heap (G1, 10-20% slack, string deduplication) + Server VM |
Eternal ID of this version: | #1011264/3 |
Text MD5: | 5cffa669d5e5fb9ee1e7b819836f530c |
Transpilation MD5: | b7d458b7a6e72fb62efc7065397199e2 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-21 21:46:00 |
Source code size: | 591 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 470 / 578 |
Version history: | 2 change(s) |
Referenced in: | [show references] |