Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1017319 // Test setting VM options at runtime (no workee)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (5534L/40K).

1  
!7
2  
3  
import com.sun.management.HotSpotDiagnosticMXBean;
4  
5  
p-exp {
6  
  HotSpotDiagnosticMXBean bean = ManagementFactory.getPlatformMXBean(HotSpotDiagnosticMXBean.class);
7  
  print("PrintGCDetails=" + bean.getVMOption("PrintGCDetails"));
8  
  bean.setVMOption("PrintGCDetails", "true");
9  
  print("PrintGCDetails=" + bean.getVMOption("PrintGCDetails"));
10  
}

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: #1017319
Snippet name: Test setting VM options at runtime (no workee)
Eternal ID of this version: #1017319/3
Text MD5: 43de0714eb3ed4f44c504de494e2efaf
Transpilation MD5: 886b973267b318c7811055722158d435
Author: stefan
Category: javax / discovery
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-16 20:50:15
Source code size: 351 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 474 / 1103
Version history: 2 change(s)
Referenced in: [show references]