Libraryless. Click here for Pure Java version (4859L/31K/108K).
!7 p { S s = javaxDefaultVMArgs(); print("Default VM Args: " + quote(s)); S fix = "-XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10 -XX:+UseG1GC"; if (!contains(s, fix)) setDefaultVMArgs(s + " " + fix); else print("Keeping."); }
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: | 513 / 571 |
Version history: | 2 change(s) |
Referenced in: | [show references] |