Add gc-basics: Java garbage collection explained and measured on JDK 25, 27, 28 EA
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b44MquEzmd9QMkZCd7
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
f7b6c1efca
commit
876ae1bb5c
@@ -0,0 +1,10 @@
|
||||
# Running out of memory: the message depends on how the collector fails (JDK 25, -Xmx64m)
|
||||
|
||||
## G1, 1 MB arrays
|
||||
kept 31 arrays of 1 MB then: java.lang.OutOfMemoryError: Java heap space
|
||||
|
||||
## G1, tiny objects
|
||||
kept 1215487 tiny objects then: java.lang.OutOfMemoryError: Java heap space
|
||||
|
||||
## Parallel, tiny objects
|
||||
kept 1160801 tiny objects then: java.lang.OutOfMemoryError: Java heap space
|
||||
Reference in New Issue
Block a user