INRIA / INRIA/spoon

MavenLauncher classloading increasing

Open
#4,329 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

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> allTypes = ctModel.getAllTypes();`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.