Libraryless. Click here for Pure Java version (4859L/31K/108K).
1 | !7 |
2 | |
3 | p { |
4 | S s = javaxDefaultVMArgs(); |
5 | print("Default VM Args: " + quote(s)); |
6 | S fix = "-XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10 -XX:+UseG1GC"; |
7 | if (!contains(s, fix)) |
8 | setDefaultVMArgs(s + " " + fix); |
9 | else |
10 | print("Keeping."); |
11 | } |
See #1006273 for unsetting this.
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv
No comments. add comment
Snippet ID: | #1006272 |
Snippet name: | Set Global JavaX Option: Smaller Heap |
Eternal ID of this version: | #1006272/3 |
Text MD5: | 6f2897c4d2331b599d09ddff946b3157 |
Transpilation MD5: | 02e4b74f38b93f6fed7e7e222817c83f |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-01 09:57:52 |
Source code size: | 256 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 514 / 573 |
Version history: | 2 change(s) |
Referenced in: | [show references] |