Tagged articles
metaspace
40 articles · Page 1 of 1

java1234Oct 28, 2026 · Backend Development
This article explores Arthas 4, Alibaba's open-source Java diagnostic tool, covering its core commands, troubleshooting workflow, new features including JDK 8-25 support, improved flame graphs with wall-clock profiling, Metaspace analysis by classloader, and experimental MCP integration for AI-assisted debugging, with three practical command examples for CPU analysis, method tracing, and memory profiling.
ArthasJDK 25JVM troubleshooting
0 likes · 10 min read


liandkSep 15, 2026 · Backend Development
This comprehensive guide covers four Java OOM types (heap, metaspace, stack, direct memory), details enterprise troubleshooting SOP using jmap and MAT analysis, identifies five common memory leak root causes, and provides a six-step production emergency response plus long-term prevention rules.
Heap DumpJVMJava
0 likes · 12 min read

This article walks through the five JVM runtime data areas, explains the distinction between the JVM specification and HotSpot implementation, compares the PermGen to Metaspace transition from JDK 8 to JDK 17, and provides hands‑on code to reproduce each type of memory‑related OutOfMemoryError.
HeapJVMJava
0 likes · 22 min read

The article walks through a real e‑commerce order service where afternoon spikes caused response times to jump to 2‑3 seconds, Full GC to run every few minutes, and Metaspace to hit 99.9%, then demonstrates step‑by‑step analysis using monitoring, GC logs, jstat, jmap, and heap dumps, fixes a custom class‑loader leak, adjusts JVM flags, and achieves sub‑200 ms latency with no Full GC.
Classloader LeakGCJVM
0 likes · 8 min read

Full GC pauses all application threads and degrades performance; this article explains frequent Full GC causes such as memory leaks, large object allocation, old‑generation and metaspace shortages, and mis‑configured JVM parameters, and provides concrete detection tools and optimization strategies for each garbage collector.
Full GCGC tuningJVM
0 likes · 8 min read

The article lists the most frequent Java OutOfMemoryError variants, explains their root causes and typical scenarios, provides concrete code examples that trigger each error, and offers practical troubleshooting steps and JVM tuning recommendations for interview preparation.
HeapJVMJava
0 likes · 8 min read

java.lang.OutOfMemoryError: Metaspace occurs when the JVM's native Metaspace exceeds its configured limit, often due to excessive dynamic class generation, large numbers of loaded classes or classloader leaks, and can be mitigated by increasing Metaspace size, fixing memory leaks, and optimizing class loading.
JVMJavaOutOfMemoryError
0 likes · 5 min read

This article explains the JVM method area concept, its implementation as the permanent generation in JDK 1.7, the limitations of that approach, and how JDK 1.8 introduced metaspace using native memory to improve class metadata management and avoid out‑of‑memory errors.
JVMJavaMethod Area
0 likes · 5 min read

After upgrading core services to JDK 11, the team encountered a Metaspace rise and off‑heap memory growth caused by class‑loading changes and Netty’s disabled native buffers, which were resolved by expanding Metaspace to 768 MB and adding JVM options to enable Netty reflection and open required modules, restoring normal memory usage.
JDK11JVMMemoryLeak
0 likes · 8 min read

This comprehensive guide walks you through systematic JVM memory issue diagnosis, covering initial data collection, analysis of heap, metaspace, direct memory, stack problems, and practical command‑line tools, while offering actionable tips and real‑world examples for effective troubleshooting.
DirectMemoryHeapJVM
0 likes · 56 min read

This article explains the JVM memory architecture—including heap, stack, native stack, method area, and program counter—detailing heap generations, object allocation strategies, object layout, reference types, and the complete lifecycle of Java objects from creation to garbage collection.
JVMObject Lifecyclegarbage collection
0 likes · 11 min read


JavaEdgeJul 8, 2024 · Backend Development
This article explains Java Metaspace and metadata GC thresholds, compares PermGen with Metaspace, and provides detailed JVM flag configurations—including size settings and compressed pointer options—to help developers optimize memory usage and garbage‑collection performance.
JavaPerformance Tuninggarbage collection
0 likes · 8 min read

This article explains six typical OutOfMemoryError situations in Java—heap, native thread, stack overflow, direct buffer, GC overhead, and Metaspace—provides code examples that trigger each issue, shows the resulting exception messages, and offers practical tips such as using thread pools, limiting recursion depth, adjusting GC settings, and configuring Metaspace to avoid these memory problems.
GCHeapJVM
0 likes · 9 min read

This article explains the common Java OutOfMemoryError types—including heap space, GC overhead limit exceeded, Metaspace, CodeCache, Direct Memory, and Linux OOM Killer—detailing their causes, symptoms, and step‑by‑step troubleshooting techniques for backend developers.
DirectMemoryGCJVM
0 likes · 11 min read

This article explains the various Java OutOfMemoryError types—including Java heap space, GC overhead limit exceeded, Metaspace, CodeCache, Direct Memory, and Linux OOM Killer—describes their causes, typical symptoms, and provides step‑by‑step troubleshooting and mitigation strategies for developers.
GCJVMJava
0 likes · 10 min read

This article documents a step‑by‑step investigation of a high TP99 caused by frequent Full GC in a Java service, describing the diagnostic mindset, tools used, GC trigger conditions, object promotion mechanisms, the impact of AdaptiveSizePolicy and Metaspace, and the concrete configuration and code changes that eliminated the issue.
AdaptiveSizePolicyFullGCJVM
0 likes · 12 min read

This article documents a month‑long JVM garbage‑collection tuning process that reduced daily FullGC occurrences from over 40 to less than one per ten days by adjusting heap parameters, fixing memory leaks, and tuning Metaspace, while providing detailed analysis, code snippets, and performance graphs.
FullGCJVMMemory Leak
0 likes · 11 min read

This article walks through a real‑world investigation of a Metaspace Out‑Of‑Memory error in a Java service, detailing how JVM monitoring tools, class‑loader behavior, and hot‑deployment agents contributed to the issue and presenting practical fixes and preventive measures.
ArthasClassLoaderJVM
0 likes · 12 min read

This article provides a comprehensive overview of the Java Virtual Machine memory architecture, covering heap layout, object allocation, Metaspace, stack frames, native method stacks, program counters, direct memory, and code cache, complete with configuration tips and practical code examples.
HeapJVMgarbage collection
0 likes · 18 min read

This article explains the JVM memory layout, covering the heap (including Xms/Xmx tuning, Young/Old generations, and garbage collection), Metaspace versus PermGen, the thread‑private JVM stack and native method stack, and the program counter register, with practical code examples.
HeapJVMgarbage collection
0 likes · 15 min read

This article explains the JVM memory layout, covering the heap (young and old generations), Metaspace, virtual machine stacks, native method stacks, and the program‑counter register, while describing their roles, configuration parameters and how they interact during garbage collection and method execution.
HeapJVMJava
0 likes · 14 min read

This article explains the JVM memory layout, covering the heap area, its configurable size and generational structure, the Metaspace replacement for PermGen, the thread‑private virtual machine stack and native method stack, as well as the program counter register and related garbage‑collection behavior.
HeapJVMJava
0 likes · 14 min read

This article explains the JVM memory architecture, covering the heap (young and old generations, Eden and Survivor spaces), Metaspace, virtual machine stacks, native method stacks, and the program counter register, while also illustrating key JVM parameters and bytecode execution with examples.
HeapJVMJava
0 likes · 13 min read

A production incident on an elastic‑cloud deployment revealed that setting the JVM Metaspace limit to 64 MiB, while the application required around 76 MiB, triggered continuous Full GC, causing stop‑the‑world pauses, full‑line time‑outs, and a costly rollback.
Elastic CloudGCJVM
0 likes · 9 min read

The article recounts a staged rollout of the Maybach service on elastic cloud, details the timeline of successful and failing deployments, analyzes JVM metrics revealing excessive Metaspace usage that triggered continuous full garbage collections, and explains how this caused system‑wide timeouts and a half‑hour outage.
Full GCJVMOperations
0 likes · 10 min read

This article provides a comprehensive overview of the Java Virtual Machine memory layout, covering the heap, metaspace, stack frames, program counter, direct memory, and code cache, along with practical tuning tips, demonstration code for heap OOM, and references for deeper study.
HeapJVMJava memory
0 likes · 19 min read

This article provides a comprehensive overview of the Java Virtual Machine memory layout, explaining each region such as the heap, metaspace, stack, program counter, direct memory and code cache, along with allocation strategies, tuning parameters, and practical OOM demonstrations.
HeapJVMJava
0 likes · 16 min read

This article examines the various causes of Java OutOfMemoryError, demonstrating heap overflow, stack overflow, metaspace exhaustion, and direct memory exhaustion through practical code examples, and explains how to diagnose and differentiate memory leaks from genuine memory overuse using JVM tools.
DirectMemoryHeapJVM
0 likes · 14 min read


JavaEdgeJul 2, 2021 · Backend Development
This article explains the various types of Java OutOfMemoryError, shows how to trigger each one on HotSpot JVM, provides diagnostic steps and relevant JVM flags, and offers practical code examples for heap, stack, metaspace, and direct memory overflow scenarios.
DirectMemoryJVMJava
0 likes · 16 min read

This article explains the causes of various Java OutOfMemoryError scenarios—including heap, stack, metaspace, and direct memory overflow—provides diagnostic tools, shows reproducible code examples, and offers practical solutions such as adjusting JVM parameters and optimizing code to prevent memory exhaustion.
HeapJVMJava
0 likes · 17 min read

Tracing a large method with Arthas caused a Metaspace OOM because constant‑pool rewrites inflated the Non‑Class space, each rewrite copying a massive StackMapTable, but preserving the original constant‑pool layout in Arthas stops the growth, and exposing off‑heap metrics aids production monitoring.
ArthasJVMOOM
0 likes · 20 min read

This article provides a comprehensive overview of the Java Virtual Machine memory layout, explaining the roles and allocation strategies of the heap, metaspace, stack frames, program counter, direct memory, and code cache, and includes practical code examples for heap tuning and OOM demonstration.
HeapJVMJava
0 likes · 16 min read

This article explains when and how Java classes are loaded, details the JVM's ClassLoader implementation—including the native defineClass1 method, InstanceKlass creation, SystemDictionary registration, and parallel loading locks—then demonstrates breaking the parent‑delegation model with a custom ClassLoader and discusses practical usage scenarios.
Class LoadingClassLoaderJVM
0 likes · 18 min read

This article explains the distinction between Java memory regions and the Java Memory Model, describes each JVM runtime data area—including the program counter, stacks, heap, metaspace, and direct memory—and outlines how the model governs visibility, ordering, and synchronization in concurrent programs.
ConcurrencyJVMJava
0 likes · 20 min read

This article provides a comprehensive overview of the Java Virtual Machine memory layout, covering heap regions, Metaspace, stack frames, native method stack, program counter, direct memory, and code cache, along with configuration tips, diagnostic commands, and illustrative code examples to help readers understand memory allocation and garbage collection.
HeapJVMgarbage collection
0 likes · 16 min read

This article explains how the JVM memory layout evolved from Java 7 to Java 8, detailing the shift from the permanent generation to Metaspace, the underlying spec versus HotSpot implementation, and the key JVM flags that control class metadata allocation.
JVMJavaPermGen
0 likes · 8 min read

The article analyzes a recurring Full GC warning caused by Metaspace reaching its threshold, explains the underlying JVM mechanics, investigates dynamically generated reflection classes and SoftReference behavior, and provides a practical tuning solution by adjusting SoftRefLRUPolicyMSPerMB.
Full GCJVM tuningJava
0 likes · 8 min read

This article details a step‑by‑step investigation of a Java backend service outage caused by metaspace exhaustion due to repeated JAXBContext creation, including monitoring, dump analysis, code verification, and the final solution of caching JAXBContext and limiting metaspace size.
GCJAXBContextJava
0 likes · 7 min read

The article recounts a step‑by‑step investigation of an intermittent Java service freeze caused by blocked threads, excessive Metaspace usage, and conflicting JVM flags, showing how thread dumps, GC statistics, and startup‑parameter tweaks revealed a hidden HotSpot bug that was resolved by upgrading the JDK.
GCThread Dumpmetaspace
0 likes · 6 min read

This article details the challenges encountered when upgrading a production environment from Java 7 to Java 8, including Spring 4.0 compatibility issues, JVM crashes, GC and JIT tuning, and Metaspace memory management, and provides concrete solutions and best‑practice recommendations.
BackendJVMJava8
0 likes · 11 min read
