spoon
spoon copied to clipboard
MavenLauncher classloading increasing
I am using MavenLauncher to analyse the code, is there any way to prevent classloading increasing? It will cause metaspace oom.
MavenLauncher mavenLauncher = new MavenLauncher(checkOut.getAbsolutePath(),MavenLauncher.SOURCE_TYPE.APP_SOURCE);
mavenLauncher.getEnvironment().setNoClasspath(true);
CtModel ctModel = mavenLauncher.buildModel();
Collection<CtType<?>> allTypes = ctModel.getAllTypes();
Could you give some information what project with size you had as input?
Could you give some information what project with size you had as input?
I had many projects to load every day. Is it possible to uninstall the classloader after each project done?