sb-agent— a Byte Buddy Java agent that intercepts Spring Boot nested-JAR file reads and deliberately pauses the resource-reading thread.sb-classload— a small dependency JAR containing classes that are loaded concurrently to demonstrate class-loading contention.sb-resourceload— a small dependency JAR containing the resource read by the paused thread.sb-application— the Spring Boot executable JAR that coordinates the reproduction: it starts the resource read, waits for the blocked threads, and then releases the read.
Build the project first:
./gradlew clean bootJar shadowJarThen run the application with the agent:
java -javaagent:sb-agent/build/libs/sb-agent-1.0-all.jar -XX:ActiveProcessorCount=2 -jar sb-application/build/libs/sb-application-1.0.jar