spoon icon indicating copy to clipboard operation
spoon copied to clipboard

MavenLauncher classloading increasing

Open PeterFan89 opened this issue 3 years ago • 2 comments

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();

PeterFan89 avatar Dec 06 '21 09:12 PeterFan89

Could you give some information what project with size you had as input?

MartinWitt avatar Dec 08 '21 18:12 MartinWitt

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?

PeterFan89 avatar Dec 14 '21 09:12 PeterFan89