This article explains the fundamentals of Java SPI and JAR mechanisms, showing how to define and load service implementations, explore JAR metadata and commands, understand class‑loader hierarchies, Tomcat’s loader architecture, Spring Boot’s nested JAR handling, and how to create custom class loaders.
This article provides an in‑depth examination of Android's ClassLoader architecture, explaining how BaseDexClassLoader.findClass() and ClassLoader.loadClass() locate and load classes, with step‑by‑step source code analysis of loadClass, findLoadedClass, findClass, DexPathList, DexFile, and native class definition processes.
This article explains the overall architecture of the JVM, details each component of its runtime data area—including program counter, stacks, heap, and method area—and discusses related concepts such as the runtime constant pool and direct memory, providing a comprehensive overview for developers.
This article dissects how a simple Spring Boot Hello World application launches, walks through the runtime call stacks, explains the FatJar packaging and custom ClassLoader, and reveals how @RestController classes are automatically registered with the embedded Tomcat server.
This article dives deep into SpringBoot’s inner workings, tracing a simple HelloWorld application from its main method through the startup call stack, FatJar packaging, custom ClassLoader behavior, and automatic controller registration via annotations, revealing why the framework feels both lightweight and monstrously complex.
This article explores the inner workings of Spring Boot by dissecting a simple Hello World application, analyzing its startup sequence, class loading via FatJar, the custom JarLauncher, and automatic registration of RestControllers, while highlighting performance considerations and the complexity of its annotation-driven configuration.
This article describes the motivation, architecture, runtime instrumentation, custom class loaders, and serialization challenges behind Qunar's plug‑and‑play online debugging tool that captures application snapshots without requiring code changes or restarts.
This article analyzes iQIYI’s Neptune plugin framework, explaining why pluginization is needed, the core technical principles of class and resource loading, lifecycle management, and how Neptune implements multi‑ClassLoader isolation, resource handling, context wrapping, and incremental updates for large‑scale Android apps.
This article traces the five‑year evolution of Android plugin technology, comparing representative frameworks across three generations, and delves into core mechanisms such as class loading, resource handling, and activity lifecycle management, while providing detailed code examples and discussing future directions like componentization and app sandboxing.
This article analyzes a JVM deadlock issue encountered in a Tomcat-based application, detailing the problem's cause, analysis using jstack, and the solution involving ClassLoader isolation and ParallelCapable registration.
This article explains the internal structure of the Java Virtual Machine, covering how class files are loaded, the constant‑pool and attribute formats, stack‑frame execution, JIT compilation, escape analysis, and Java memory‑model concepts such as volatile and thread‑safety.
This article explains the fundamental problems an Android plugin framework must solve—component representation, class loading, resource handling, inter‑module calls, resource sharing, and packaging—and describes Aura's design choices and implementation strategies for each of these challenges.
This article explains Java's class loading process, the sources of class files, the hierarchy of built‑in class loaders, the parent‑delegation model, and demonstrates how to create and use a custom NetworkClassLoader for dynamic remote class loading.
This article explains the major challenges tackled by the Aura Android plugin framework—including component representation, class loading, resource handling, host‑plugin interaction, and packaging—and outlines how solving these enables building a generic, scalable plugin architecture for mobile apps.
The article investigates a Java GC slowdown problem linked to the continuous growth of the JVM's SystemDictionary when repeatedly creating XStream objects, explains how classloader choices affect this behavior, and validates the hypothesis through performance profiling and VM code modifications.
This article analyzes a production incident where a Java web application using Apollo configuration center encountered "Too many open files" errors, detailing the fault symptoms, root cause analysis involving Tomcat's classloader and file‑descriptor limits, and presenting remediation and preventive measures.
This article explains the principles and practical steps for implementing dynamic class loading and hot‑fixes in Android by manipulating DexClassLoader, PathClassLoader, and bytecode, illustrated with the Qzone hot‑fix solution and open‑source Nuwa and HotFix projects.
Through a whimsical tale of a class named Account, the article explains Java class loading, the hierarchy of classloaders, bytecode execution, the method area, stack, heap, garbage collection, and debugging, providing an engaging overview of JVM fundamentals.
This article compares three popular Android hot‑patch mechanisms—Dexposed, AndFix, and the ClassLoader‑based approach—detailing their underlying principles, implementation details, code examples, and evaluating their compatibility, performance, and ease of use to help developers choose the most suitable solution.
The article explains why repeatedly redeploying a Java servlet can trigger a java.lang.OutOfMemoryError: PermGen space, describes how classloader leaks occur, illustrates the problem with memory diagrams, and offers practical tips for detecting and fixing such leaks in backend applications.