Root Cause Analysis of OOM in a Spring Boot Service: ScriptEngine Initialization and StringSequence Memory Consumption
This article details a step‑by‑step investigation of an OutOfMemoryError in a Spring Boot social app, revealing that frequent initialization of a script engine caused massive StringSequence instances via SPI loading, and shows how consolidating the engine eliminated the OOM issue.