Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tstuefe/777ecd68b313097a8e9020ac9fea239a to your computer and use it in GitHub Desktop.
Save tstuefe/777ecd68b313097a8e9020ac9fea239a to your computer and use it in GitHub Desktop.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/compiler/compilationMemoryStatistic.cpp:956), pid=333549, tid=333575
# fatal error: c2 (1210) org/springframework/boot/loader/jar/Handler::openConnection((Ljava/net/URL;)Ljava/net/URLConnection;): Hit MemLimit - limit: 41943040 now: 42945328
#
# JRE version: OpenJDK Runtime Environment VENDORVENDOR (25.0) (fastdebug build 25-internal-adhoc.thomas.source)
# Java VM: OpenJDK 64-Bit Server VM VENDORVENDOR (fastdebug 25-internal-adhoc.thomas.source, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /shared/projects/openjdk/jdk-jdk/output-fastdebug/core.333549)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
--------------- S U M M A R Y ------------
Command Line: -XX:CompileCommand=MemLimit,*.*,40m~crash /shared/projects/spring-petclinic/target/spring-petclinic-2.5.0-SNAPSHOT.jar
--------------- T H R E A D ---------------
Current thread (0x00007ff464048890): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=333575, stack(0x00007ff4e3afb000,0x00007ff4e3bfc000) (1028K)]
Current CompileTask:
C2:1389 1210 ! 4 org.springframework.boot.loader.jar.Handler::openConnection (46 bytes)
Stack: [0x00007ff4e3afb000,0x00007ff4e3bfc000], sp=0x00007ff4e3bf6fd0, free space=1007k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1b8e934] VMError::report(outputStream*, bool)+0x34a4 (compilationMemoryStatistic.cpp:956)
V [libjvm.so+0x1b90b49] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x4f9 (vmError.cpp:1807)
V [libjvm.so+0xb5e819] report_fatal(VMErrorType, char const*, int, char const*, ...)+0x109 (debug.cpp:223)
V [libjvm.so+0xa70ca8] CompilationMemoryStatistic::on_arena_chunk_allocation_0(unsigned long, int, unsigned long*)+0x548 (compilationMemoryStatistic.cpp:956)
V [libjvm.so+0x66a064] ChunkPool::allocate_chunk(Arena*, unsigned long, AllocFailStrategy::AllocFailEnum)+0x2b4 (compilationMemoryStatistic.hpp:75)
V [libjvm.so+0x66aafa] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0xda (arena.cpp:309)
V [libjvm.so+0xed6655] PhaseIFG::init(unsigned int)+0x1c5 (arena.hpp:147)
V [libjvm.so+0xe4fbac] PhaseCFG::global_code_motion()+0x78c (gcm.cpp:1708)
V [libjvm.so+0xe50556] PhaseCFG::do_global_code_motion()+0x66 (gcm.cpp:1778)
V [libjvm.so+0xa96020] Compile::Code_Gen()+0x3e0 (compile.cpp:2953)
V [libjvm.so+0xa993a6] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1d46 (compile.cpp:883)
V [libjvm.so+0x8e4d9a] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1ca (c2compiler.cpp:141)
V [libjvm.so+0xaa6997] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xd37 (compileBroker.cpp:2317)
V [libjvm.so+0xaa7858] CompileBroker::compiler_thread_loop()+0x5c8 (compileBroker.cpp:1975)
V [libjvm.so+0xf92e3f] JavaThread::thread_main_inner()+0x1ff (javaThread.cpp:776)
V [libjvm.so+0x1ab0ece] Thread::call_run()+0xbe (thread.cpp:231)
V [libjvm.so+0x15c756b] thread_native_entry(Thread*)+0x12b (os_linux.cpp:877)
>> Please see below for a detailed breakdown of compiler memory usage.
< S N I P S N I P >
Native Memory Tracking:
(Omitting categories weighting less than 1KB)
Total: reserved=18376662KB, committed=1292302KB
malloc: 164246KB #207100, peak=178417KB #154232
mmap: reserved=18212416KB, committed=1128056KB
- Java Heap (reserved=16441344KB, committed=1040384KB)
(mmap: reserved=16441344KB, committed=1040384KB, at peak)
- Class (reserved=1048830KB, committed=1022KB)
(classes #2909)
( instance classes #2611, array classes #298)
(malloc=254KB #5114) (peak=254KB #5111)
(mmap: reserved=1048576KB, committed=768KB, at peak)
( Metadata: )
( reserved=65536KB, committed=7424KB)
( used=7295KB)
( waste=129KB =1,74%)
( Class space:)
( reserved=1048576KB, committed=768KB)
( used=711KB)
( waste=57KB =7,41%)
- Thread (reserved=38045KB, committed=1261KB)
(threads #37)
(stack: reserved=37940KB, committed=1156KB, peak=1156KB)
(malloc=69KB #214) (peak=83KB #226)
(arena=35KB #60) (peak=832KB #60)
- Code (reserved=252677KB, committed=14929KB)
(malloc=4960KB #95033) (peak=4960KB #95036)
(mmap: reserved=247684KB, committed=9936KB, at peak)
(arena=33KB #1) (peak=66KB #2)
- GC (reserved=389022KB, committed=88222KB)
(malloc=34114KB #2103) (peak=34162KB #2205)
(mmap: reserved=354908KB, committed=54108KB, at peak)
(arena=0KB #0) (peak=15KB #16)
- GCCardSet (reserved=0KB, committed=0KB)
(malloc=0KB #4) (peak=1KB #5)
- Compiler (reserved=40895KB, committed=40895KB)
(malloc=1126KB #223) (peak=1284KB #312)
(arena=39769KB #23) (peak=121158KB #45)
- Internal (reserved=14100KB, committed=14100KB)
(malloc=14064KB #83815) (peak=14064KB #83818)
(mmap: reserved=36KB, committed=36KB, at peak)
- Other (reserved=2KB, committed=2KB)
(malloc=2KB #1) (at peak)
- Symbol (reserved=2213KB, committed=2213KB)
(malloc=1853KB #15694) (at peak)
(arena=360KB #1) (at peak)
- Native Memory Tracking (reserved=3650KB, committed=3650KB)
(malloc=10KB #91) (peak=10KB #97)
(tracking overhead=3640KB)
- Shared class space (reserved=16384KB, committed=14236KB, readonly=0KB)
(mmap: reserved=16384KB, committed=14236KB, peak=14448KB)
- Arena Chunk (reserved=63782KB, committed=63782KB)
(malloc=63782KB #2962) (peak=129965KB #3098)
- Module (reserved=81KB, committed=81KB)
(malloc=81KB #1469) (at peak)
- Safepoint (reserved=8KB, committed=8KB)
(mmap: reserved=8KB, committed=8KB, at peak)
- Synchronization (reserved=43KB, committed=43KB)
(malloc=43KB #323) (peak=43KB #324)
- Serviceability (reserved=17KB, committed=17KB)
(malloc=17KB #10) (peak=17KB #14)
- Metaspace (reserved=65567KB, committed=7455KB)
(malloc=31KB #13) (at peak)
(mmap: reserved=65536KB, committed=7424KB, at peak)
- String Deduplication (reserved=1KB, committed=1KB)
(malloc=1KB #8) (at peak)
- Object Monitors (reserved=1KB, committed=1KB)
(malloc=1KB #6) (at peak)
Preinit state:entries: 381 (primary: 381, empties: 7810), sum bytes: 14460, longest chain length: 1
pre-init mallocs: 438, pre-init reallocs: 0, pre-init frees: 57
MallocLimit: unset
Compiler Memory Statistic, hit OOM limit; offending compilation:
org/springframework/boot/loader/jar/Handler::openConnection((Ljava/net/URL;)Ljava/net/URLConnection;)
Total Usage: 42945328
--- Arena Usage by Arena Type and compilation phase, at arena usage peak of 42945328 ---
Phase Total ra node comp type index reglive regsplit cienv other
none 1093336 42928 982984 33712 0 0 0 0 0 33712
parse 11816288 720016 6709640 1866336 0 0 0 0 1865616 654680
optimizer 752784 0 720056 0 0 0 0 0 0 32728
escapeAnalysis 2411488 0 1309120 774928 0 0 0 0 0 327440
connectionGraph 687288 0 0 589104 0 0 0 0 98184 0
macroEliminate 196448 0 196448 0 0 0 0 0 0 0
iterGVN 360168 0 196368 163800 0 0 0 0 0 0
incrementalInline 3960088 0 3043704 589104 0 0 0 0 261824 65456
incrementalInline_igvn 458512 0 163640 294872 0 0 0 0 0 0
incrementalInline_inline 32728 0 0 32728 0 0 0 0 0 0
337880 0 108504 229376 0 0 0 0 0 0
idealLoop 2728824 0 632152 2096672 0 0 0 0 0 0
idealLoopVerify 327600 0 0 327600 0 0 0 0 0 0
ccp 32728 0 0 0 0 0 0 0 0 32728
macroExpand 1931272 0 1570944 327600 0 0 0 0 0 32728
graphReshape 347920 0 315192 32728 0 0 0 0 0 0
matcher 9449384 1819720 6450176 1179488 0 0 0 0 0 0
postselect_cleanup 163800 163800 0 0 0 0 0 0 0 0
scheduler 827776 533224 294552 0 0 0 0 0 0 0
ctorChaitin 39672 39672 0 0 0 0 0 0 0 0
computeLive 4989344 4989344 0 0 0 0 0 0 0 0
--- Allocation timelime by phase ---
Phase seq. number Bytes Nodes
>0 (outside) 102120 (+102120) 3 (+3)
>1 parse 11918408 (+11816288) 7197 (+7194)
<0 (cont.) (outside) 11918408 (+0) 7197 (+0)
>2 optimizer 11918408 (+0) 7197 (+0)
>3 iterGVN 12344032 (+425624) 6337 (-860)
<2 (cont.) optimizer 12344032 (+0) 6337 (+0)
>4 incrementalInline 12344032 (+0) 6337 (+0)
>5 incrementalInline_inline 12376760 (+32728) 6354 (+17)
<4 (cont.) incrementalInline 12376760 (+0) 6354 (+0)
>6 incrementalInline_pru 12376760 (+0) 6311 (-43)
<4 (cont.) incrementalInline 12376760 (+0) 6311 (+0)
>7 incrementalInline_igvn 12376760 (+0) 6310 (-1)
<4 (cont.) incrementalInline 16762312 (+4385552) 17224 (+10914)
>8 incrementalInline_pru 16762312 (+0) 10209 (-7015)
<4 (cont.) incrementalInline 16762312 (+0) 10209 (+0)
>9 incrementalInline_igvn 17253552 (+491240) 9398 (-811)
<4 (cont.) incrementalInline 17253552 (+0) 9398 (+0)
<2 (cont.) optimizer 17253552 (+0) 9420 (+22)
>10 incrementalInline_pru 17253552 (+0) 9384 (-36)
<2 (cont.) optimizer 17253552 (+0) 9384 (+0)
>11 incrementalInline_igvn 17253552 (+0) 9377 (-7)
<2 (cont.) optimizer 17875984 (+622432) 9345 (-32)
>12 18213864 (+337880) 9344 (-1)
<2 (cont.) optimizer 18213864 (+0) 9344 (+0)
>13 idealLoop 18551624 (+337760) 9264 (-80) significant temporary peak: 19829104 (+1615240)
<2 (cont.) optimizer 18551624 (+0) 9264 (+0)
>14 escapeAnalysis 18668696 (+117072) 9265 (+1)
>15 connectionGraph 19454328 (+785632) 9265 (+0)
<14 (cont.) escapeAnalysis 20927408 (+1473080) 10889 (+1624)
<2 (cont.) optimizer 21549280 (+621872) 8859 (-2030)
>16 macroEliminate 21876640 (+327360) 8711 (-148)
<2 (cont.) optimizer 22040440 (+163800) 8711 (+0)
>17 escapeAnalysis 22206816 (+166376) 8711 (+0)
>18 connectionGraph 22861536 (+654720) 8711 (+0)
<17 (cont.) escapeAnalysis 22763432 (-98104) 8933 (+222)
<2 (cont.) optimizer 22828888 (+65456) 8727 (-206)
>19 macroEliminate 22828888 (+0) 8727 (+0)
<2 (cont.) optimizer 22992688 (+163800) 8727 (+0)
>20 idealLoop 23352856 (+360168) 8391 (-336) significant temporary peak: 24561920 (+1569232)
<2 (cont.) optimizer 23352856 (+0) 8391 (+0)
>21 idealLoop 23582112 (+229256) 8581 (+190) significant temporary peak: 25617384 (+2264528)
<2 (cont.) optimizer 23582112 (+0) 8581 (+0)
>22 idealLoop 23811368 (+229256) 8724 (+143) significant temporary peak: 25527456 (+1945344)
<2 (cont.) optimizer 23811368 (+0) 8724 (+0)
>23 idealLoopVerify 24943240 (+1131872) 8724 (+0)
<2 (cont.) optimizer 24040624 (-902616) 8725 (+1)
>24 ccp 24073352 (+32728) 8601 (-124)
<2 (cont.) optimizer 24073352 (+0) 8601 (+0)
>25 iterGVN2 24073352 (+0) 8587 (-14)
<2 (cont.) optimizer 24073352 (+0) 8587 (+0)
>26 idealLoop 24269880 (+196528) 8581 (-6) significant temporary peak: 25743888 (+1670536)
<2 (cont.) optimizer 24269880 (+0) 8581 (+0)
>27 idealLoop 24990696 (+720816) 8610 (+29) significant temporary peak: 26713784 (+2443904)
<2 (cont.) optimizer 24990696 (+0) 8610 (+0)
>28 idealLoop 25252680 (+261984) 8666 (+56) significant temporary peak: 26979880 (+1989184)
<2 (cont.) optimizer 25252680 (+0) 8666 (+0)
>29 idealLoop 25449208 (+196528) 8525 (-141) significant temporary peak: 26998056 (+1745376)
<2 (cont.) optimizer 25449208 (+0) 8525 (+0)
>30 idealLoop 26690816 (+1241608) 8432 (-93)
>31 autoVectorize 26690816 (+0) 8432 (+0)
<30 (cont.) idealLoop 25645736 (-1045080) 8358 (-74)
<2 (cont.) optimizer 25645736 (+0) 8358 (+0)
>32 idealLoopVerify 26789920 (+1144184) 8358 (+0)
<2 (cont.) optimizer 25842264 (-947656) 8307 (-51)
>33 macroExpand 27806264 (+1964000) 10089 (+1782)
<2 (cont.) optimizer 27806264 (+0) 10089 (+0)
>34 barrierExpand 27806264 (+0) 10089 (+0)
<2 (cont.) optimizer 27806264 (+0) 10089 (+0)
>35 graphReshape 28267616 (+461352) 10338 (+249)
<2 (cont.) optimizer 26484136 (-1783480) 10338 (+0)
<0 (cont.) (outside) 26494336 (+10200) 10338 (+0)
>36 matcher 35942736 (+9448400) 11432 (+1094)
>37 postselect_cleanup 36106536 (+163800) 11432 (+0)
<36 (cont.) matcher 36106536 (+0) 11432 (+0)
<0 (cont.) (outside) 37088536 (+982000) 13456 (+2024)
>38 scheduler 37849792 (+761256) 13456 (+0)
>39 ctorChaitin 37889464 (+39672) 13456 (+0)
<38 (cont.) scheduler 37955984 (+66520) 13456 (+0)
>40 computeLive 42945328 (+4989344) 13456 (+0)
---
Compiler Memory Statistic, 10 most expensive compilations:
ctyp total ra node comp type index reglive regsplit cienv other #nodes result limit time id thread method
c2 39221656 6646472 15978784 5323784 0 0 984 8586712 1931072 753848 14536 ok 41943040 1,476 1318 0x00007ff52c1f9da0 jdk/internal/loader/URLClassPath$Loader::getResource((Ljava/lang/String;)Ljdk/internal/loader/Resource;)
c2 36549424 13723680 14595656 5315912 0 0 0 0 1832888 1081288 11396 ok 41943040 1,572 1380 0x00007ff46c20bb70 java/net/URL::openConnection(()Ljava/net/URLConnection;)
c2 35593984 12935504 14988432 4985128 0 0 0 0 1931072 753848 11780 ok 41943040 1,373 1212 0x00007ff470466360 org/springframework/boot/loader/jar/JarURLConnection::get((Ljava/net/URL;Lorg/springframework/boot/loader/jar/JarFile;)Lorg/springframework/boot/loader/jar/JarURLConnection;)
c1 17830168 17469176 0 0 0 0 0 0 327280 33712 - ok 41943040 0,385 235 0x00007ff480036830 jdk/internal/classfile/impl/StackMapGenerator::processBlock((Ljdk/internal/classfile/impl/RawBytecodeHelper;)Z)
c2 14717440 5712288 5303320 2751696 0 0 0 0 621832 328304 3875 ok 41943040 0,937 1194 0x00007ff46c20bb70 org/springframework/boot/loader/jar/JarFileEntries::getEntry((Ljava/lang/CharSequence;Ljava/lang/Class;Z)Lorg/springframework/boot/loader/jar/FileHeader;)
c2 11527280 5828616 3470352 1605456 0 0 0 0 360008 262848 4107 ok 41943040 2,674 1965 0x00007ff48069e890 org/springframework/boot/context/properties/source/ConfigurationPropertyName$ElementsParser::parse((Ljava/util/function/Function;)Lorg/springframework/boot/context/properties/source/ConfigurationPropertyName$Elements;)
c1 10261104 10064736 0 0 0 0 0 0 196368 0 - ok 41943040 0,586 932 0x00007ff52c1fb830 java/net/URLStreamHandler::parseURL((Ljava/net/URL;Ljava/lang/String;II)V)
c2 9017944 4268912 2979312 1277816 0 0 0 0 327280 164624 3194 ok 41943040 0,899 1203 0x00007ff52c1f9da0 java/net/URLStreamHandler::toExternalForm((Ljava/net/URL;)Ljava/lang/String;)
c2 6622904 3052200 1931976 1081328 0 0 0 0 327280 230120 1859 ok 41943040 1,000 1309 0x00007ff46c20bb70 org/springframework/boot/loader/jar/Handler::parseURL((Ljava/net/URL;Ljava/lang/String;II)V)
c2 6021360 2842952 1670152 1409088 0 0 0 0 32728 66440 1643 ok 41943040 0,349 496 0x00007ff52c1f9da0 org/springframework/boot/loader/jar/JarFileEntries::sort((II)V)
Total: 10 (C1: 2, C2: 8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment