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

10
LINES

< > BotCompany Repo | #1027701 // 100 Sleeping Threads with -Xss5M

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

Uses 5404K of libraries. Click here for Pure Java version (10199L/74K/229K).

!7

p {
  restartWithVMArgs(args, "-Xss5M -XX:NativeMemoryTracking=summary " + smallHeapArgs());
  for (int i = 0; i < 100; i++)
    thread "Sleeper" { main.sleep(); }
  print("100 threads created.");
  gc();
  print("Process size: " + toM_str(oshi_currentProcessResidentSize()));
}

Author comment

Began life as a copy of #1009121

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

-
Snippet ID: #1027701
Snippet name: 100 Sleeping Threads with -Xss5M
Eternal ID of this version: #1027701/1
Text MD5: ee8b16cacf2944b62dd82fa5a64fcb8a
Transpilation MD5: 28501aaf79ba2ce30c16689a04bff9a3
Author: stefan
Category: javax / benchmarks
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-01 15:07:18
Source code size: 291 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 297
Referenced in: