I am seeing the below in the GC log before the JVM pauses for several minutes after which it gets restarted externally.
[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]
Looking at this log, it seems to point an imminent Metaspace OOM however I am not sure if its indeed the case given the log seems to indicate only an allocation failure & there was no java.lang.OutOfMemoryError: Metaspace getting thrown afterwards just a very long pause.
Is my understanding correct that the above implies an imminent Metaspace OOM?
BytesPerWordis assigned in the native code.)