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

10
LINES

< > BotCompany Repo | #1017321 // Print all VM options from HotSpot bean

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

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

!7

import com.sun.management.HotSpotDiagnosticMXBean;
import com.sun.management.VMOption;

p-exp {
  HotSpotDiagnosticMXBean bean = ManagementFactory.getPlatformMXBean(HotSpotDiagnosticMXBean.class);
  for (VMOption o : bean.getDiagnosticOptions())
    print(o.getName() + " = " + o.getValue() + (o.isWriteable() ? " [writeable]" : ""));
}

Author comment

Began life as a copy of #1017319

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: #1017321
Snippet name: Print all VM options from HotSpot bean
Eternal ID of this version: #1017321/2
Text MD5: 047d081d40e09d0a5824ffcd8ddace2f
Transpilation MD5: 7011b807a3cab23d63ca2e587bd4e122
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:55:34
Source code size: 349 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 394 / 936
Version history: 1 change(s)
Referenced in: [show references]