-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
type: regressionA regression from a previous releaseA regression from a previous release
Milestone
Description
Environment:spring boot 2.5.4 + jdk8
Create a bean to continue load class which could not be found,than use java -jar start springboot fatjar
@Component
public class TestClass implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
new Thread(() -> {
while (true) {
try {
Class.forName("com.test.error.NotClassFound");
} catch (ClassNotFoundException e) {
//ignore
}
}
}).start();
}
}
many org.springframework.boot.loader.jar.JarFileWrapper will be create which increase FinalReference time in gc:
when update spring boot version to 2.1.13,it's ok:
In normal it will not happen because LaunchedURLClassLoader has package cache,but it will happen when so bug trigger many nonexistent class load.
Metadata
Metadata
Assignees
Labels
type: regressionA regression from a previous releaseA regression from a previous release