METASPACE

과대 계상 조정 후 지표 수집 -> before / after 비교

LayoutDialecet 제거 전 배포 직후 12시간 측정

[miraclecoat@umj7-021 ~]$ jcmd 13509 VM.metaspace;
13509:

Total Usage - 1005 loaders, 25265 classes (1347 shared):
  Non-Class: 5780 chunks,    107.13 MB capacity,  106.45 MB (>99%) committed,   105.94 MB ( 99%) used,   508.59 KB ( <1%) free,     5.45 KB ( <1%) waste , deallocated: 499 blocks with 140.09 KB
      Class: 1939 chunks,     16.11 MB capacity,   16.11 MB (100%) committed,    15.57 MB ( 97%) used,   548.30 KB (  3%) free,   272 bytes ( <1%) waste , deallocated: 837 blocks with 208.72 KB
       Both: 7719 chunks,    123.24 MB capacity,  122.55 MB (>99%) committed,   121.51 MB ( 99%) used,     1.03 MB ( <1%) free,     5.71 KB ( <1%) waste , deallocated: 1336 blocks with 348.80 KB


Virtual space:
  Non-class space:      112.00 MB reserved,     106.50 MB ( 95%) committed,  14 nodes.
      Class space:      104.00 MB reserved,      16.12 MB ( 16%) committed,  1 nodes.
             Both:      216.00 MB reserved,     122.62 MB ( 57%) committed.


Chunk freelists:
   Non-Class:

  4m: (none)
  2m: (none)
  1m: (none)
512k:    2, capacity=1.00 MB, committed=0 bytes (  0%)
256k:    2, capacity=512.00 KB, committed=0 bytes (  0%)
128k: (none)
 64k:    2, capacity=128.00 KB, committed=0 bytes (  0%)
 32k:    2, capacity=64.00 KB, committed=0 bytes (  0%)
 16k:    2, capacity=32.00 KB, committed=0 bytes (  0%)
  8k: (none)
  4k:    2, capacity=8.00 KB, committed=0 bytes (  0%)
  2k:    2, capacity=4.00 KB, committed=0 bytes (  0%)
  1k:    2, capacity=2.00 KB, committed=0 bytes (  0%)
Total word size: 1.73 MB, committed: 0 bytes (  0%)

       Class:

  4m: (none)
  2m:    1, capacity=2.00 MB, committed=0 bytes (  0%)
  1m:    1, capacity=1.00 MB, committed=0 bytes (  0%)
512k:    1, capacity=512.00 KB, committed=0 bytes (  0%)
256k: (none)
128k:    2, capacity=256.00 KB, committed=0 bytes (  0%)
 64k:    2, capacity=128.00 KB, committed=0 bytes (  0%)
 32k: (none)
 16k:    1, capacity=16.00 KB, committed=16.00 KB (100%)
  8k: (none)
  4k: (none)
  2k:    1, capacity=2.00 KB, committed=2.00 KB (100%)
  1k:    1, capacity=1.00 KB, committed=1.00 KB (100%)
Total word size: 3.89 MB, committed: 19.00 KB ( <1%)

        Both:

  4m: (none)
  2m:    1, capacity=2.00 MB, committed=0 bytes (  0%)
  1m:    1, capacity=1.00 MB, committed=0 bytes (  0%)
512k:    3, capacity=1.50 MB, committed=0 bytes (  0%)
256k:    2, capacity=512.00 KB, committed=0 bytes (  0%)
128k:    2, capacity=256.00 KB, committed=0 bytes (  0%)
 64k:    4, capacity=256.00 KB, committed=0 bytes (  0%)
 32k:    2, capacity=64.00 KB, committed=0 bytes (  0%)
 16k:    3, capacity=48.00 KB, committed=16.00 KB ( 33%)
  8k: (none)
  4k:    2, capacity=8.00 KB, committed=0 bytes (  0%)
  2k:    3, capacity=6.00 KB, committed=2.00 KB ( 33%)
  1k:    3, capacity=3.00 KB, committed=1.00 KB ( 33%)
Total word size: 5.63 MB, committed: 19.00 KB ( <1%)



Waste (unused committed space):(percentages refer to total committed size 122.62 MB):
        Waste in chunks in use:      5.71 KB ( <1%)
        Free in chunks in use:      1.03 MB ( <1%)
                In free chunks:     19.00 KB ( <1%)
Deallocated from chunks in use:    348.80 KB ( <1%) (1336 blocks)
                       -total-:      1.40 MB (  1%)

chunk header pool: 7738 items, 604.05 KB.

Internal statistics:

num_allocs_failed_limit: 12.
num_arena_births: 81014.
num_arena_deaths: 79004.
num_vsnodes_births: 18.
num_vsnodes_deaths: 3.
num_space_committed: 2162.
num_space_uncommitted: 200.
num_chunks_returned_to_freelist: 105330.
num_chunks_taken_from_freelist: 113038.
num_chunk_merges: 26941.
num_chunk_splits: 47976.
num_chunks_enlarged: 23134.
num_purges: 588.
num_inconsistent_stats: 0.


Settings:
MaxMetaspaceSize: 128.00 MB
CompressedClassSpaceSize: 104.00 MB
Initial GC threshold: 21.00 MB
Current GC threshold: 128.00 MB
CDS: on
MetaspaceReclaimPolicy: balanced
 - commit_granule_bytes: 65536.
 - commit_granule_words: 8192.
 - virtual_space_node_default_size: 1048576.
 - enlarge_chunks_in_place: 1.
 - new_chunks_are_fully_committed: 0.
 - uncommit_free_chunks: 1.
 - use_allocation_guard: 0.
 - handle_deallocations: 1.
스크린샷 2026-08-07 071717

문제의 근원이 된 코드

thymeleaf-layout-dialect 코드

스크린샷 2026-08-07 181007

https://docs.oracle.com/javase/specs/jvms/se14/html/jvms-5.html#jvms-5.3

https://tomcat.apache.org/tomcat-10.1-doc/class-loader-howto.html

comments 0
첫 댓글을 남겨보세요.
댓글 작성
이름·비밀번호는 이 댓글에만 사용됩니다