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

6
LINES

< > BotCompany Repo | #1010044 // memoryBeans_totalCommitted - pretty much all the native memory used by the VM except for its own code

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (40L/1K).

static long memoryBeans_totalCommitted() {
  long totalCommitted = 0;
  for (b : memoryPoolMXBeans())
    totalCommitted += b.getUsage().getCommitted();
  ret totalCommitted;
}

Author comment

Began life as a copy of #1009123

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010044
Snippet name: memoryBeans_totalCommitted - pretty much all the native memory used by the VM except for its own code
Eternal ID of this version: #1010044/2
Text MD5: 2956c1ad3dcda8a0cf86389dc38ac1cb
Transpilation MD5: 57be6b8d622e93c78cc88e5376ec3fb1
Author: stefan
Category: javax / monitoring
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 20:57:00
Source code size: 181 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 458 / 541
Version history: 1 change(s)
Referenced in: [show references]