一、 准备测试应用 新建一个 SpringBoot应用,写一段有 OOM bug 的代码: @RestController @RequestMapping public class JvmThreadController { List<TestWrapper> memoryList = new ArrayList<>(); @GetMapping("/test") public String memoryTest(