Uses 5404K of libraries. Click here for Pure Java version (10199L/74K/229K).
1 | !7 |
2 | |
3 | p { |
4 | restartWithVMArgs(args, "-Xss5M -XX:NativeMemoryTracking=summary " + smallHeapArgs()); |
5 | for (int i = 0; i < 100; i++) |
6 | thread "Sleeper" { main.sleep(); } |
7 | print("100 threads created."); |
8 | gc(); |
9 | print("Process size: " + toM_str(oshi_currentProcessResidentSize())); |
10 | } |
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: | 205 / 297 |
Referenced in: | [show references] |