Libraryless. Click here for Pure Java version (2051L/14K/48K).
!7 p { S s = javaxDefaultVMArgs(), old = s; print("Default VM Args: " + quote(s)); s = s.replaceAll("-XX:MaxHeapFreeRatio=\\d+", ""); s = s.replaceAll("-XX:MinHeapFreeRatio=\\d+", ""); s = trim(s); s = trim(s + " -XX:MaxHeapFreeRatio=20 -XX:MinHeapFreeRatio=10"); if (!s.contains("-XX:+UseG1GC")) s = trim(s + " -XX:+UseG1GC"); if (!s.contains("-XX:+UseStringDeduplication")) s = trim(s + " -XX:+UseStringDeduplication"); if (neq(old, s)) setDefaultVMArgs(s); else print("Keeping."); }
Began life as a copy of #1006272
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008034 |
Snippet name: | Set Global JavaX Option: Even Smaller Heap (G1, 10-20% slack, string deduplication) |
Eternal ID of this version: | #1008034/8 |
Text MD5: | 08e352bc135921bfab59c8be5ba29c6e |
Transpilation MD5: | 9df72af4ac725a901ba7725de95f9630 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-14 00:38:08 |
Source code size: | 534 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 475 / 601 |
Version history: | 7 change(s) |
Referenced in: | #1011264 - Set Global JavaX Option: Even Smaller Heap (G1, 10-20% slack, string deduplication) + Server VM |