Java 17: Метаспейс (данные) Отказ распределения в журнале GC без java.lang.outofmemoryerr: metaspaceJAVA

Программисты JAVA общаются здесь
Anonymous
Java 17: Метаспейс (данные) Отказ распределения в журнале GC без java.lang.outofmemoryerr: metaspace

Сообщение Anonymous »

Я вижу ниже в журнале GC до того, как JVM остановится в течение нескольких минут, после чего он перезапускается извне.

Код: Выделить всё

[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Metaspace (data) allocation failed for size 1075
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Usage:
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]   Non-class:    168.00 MB used.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]       Class:     19.79 MB used.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]        Both:    187.79 MB used.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Virtual space:
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]   Non-class space:      192.00 MB reserved,     170.06 MB ( 89%) committed,  3 nodes.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]       Class space:       96.00 MB reserved,      21.94 MB ( 23%) committed,  1 nodes.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]              Both:      288.00 MB reserved,     192.00 MB ( 67%) committed.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Chunk freelists:
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]    Non-Class:  6.83 MB
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]        Class:  10.47 MB
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]         Both:  17.30 MB
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] MaxMetaspaceSize: 192.00 MB
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] CompressedClassSpaceSize: 96.00 MB
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Initial GC threshold: 21.00 MB
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Current GC threshold: 192.00 MB
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] CDS: off
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] MetaspaceReclaimPolicy: balanced
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - commit_granule_bytes: 65536.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - commit_granule_words: 8192.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - virtual_space_node_default_size: 8388608.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - enlarge_chunks_in_place: 1.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - new_chunks_are_fully_committed: 0.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - uncommit_free_chunks: 1.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - use_allocation_guard: 0.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]  - handle_deallocations: 1.
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] Internal statistics:
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom]
[2025-07-18T18:08:42.605-0600][info][gc,metaspace,freelist,oom] num_allocs_failed_limit: 717.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_arena_births: 71282.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_arena_deaths: 63782.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_vsnodes_births: 4.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_vsnodes_deaths: 0.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_space_committed: 3072.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_space_uncommitted: 1.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_chunks_returned_to_freelist: 95133.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_chunks_taken_from_freelist: 114240.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_chunk_merges: 22894.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_chunk_splits: 33864.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_chunks_enlarged: 6650.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom] num_inconsistent_stats:  0.
[2025-07-18T18:08:42.606-0600][info][gc,metaspace,freelist,oom]
, глядя на этот журнал, кажется, что он указывает на неизбежную метаспас, однако я не уверен, что это действительно случай, учитывая, что журнал, кажется, указывает только на неудачу распределения, и не было Java.lang.outofmemoryerr: metaspace . Oom?

Подробнее здесь: https://stackoverflow.com/questions/797 ... lang-outof

Вернуться в «JAVA»