Hi, the memory is "stable", no memory leak detected. With same number of project remain same, a new project allocates an expected amount of memory (in MavenProject instance etc). So this is really no memleak and no bug in m2e ;), only the size of maven and aether artifact is surprising.
Worth mentioning: the original thread [1] shows a big amount of org.sonatype.aether.graph.Exclusion - I guess that the user has simply many project with many exclusions Profiled environment: m2e 1.1 m6 with rebuilded maven runtime with latest aether to avoid https://issues.sonatype.org/browse/AETHER-103 Igor Fedorenko píše v Út 17. 04. 2012 v 09:18 -0400: > Does the memory usage stay stable or grows over time, provided no new > projects are added to the workspace? > > -- > Regards, > Igor > > On 12-04-17 9:13 AM, Martin Koci wrote: > > Hi, > > > > there was a thread [1] about memory usage. We have the same problem - > > big amount of memory with m2e, but according to memory profiling result > > is problem not in m2e: MemoryAnalyzer shows (for profiled workspace) : > > > > 1) about 600 instances of > > org.eclipse.m2e.core.internal.project.registry.MavenProjectFacade - > > those instances retain about ~ 800MB (I suppose there is one 1:1 > > relation : one project in workspace = one MavenProjectFacade instance?) > > > > 2) each instance of MavenProjectFacade retain few MB but 99% of each > > instance of > > org.eclipse.m2e.core.internal.project.registry.MavenProjectFacade is > > org.apache.maven.project.MavenProject - a structure from maven itself. > > > > 3) tha biggest structure in org.apache.maven.project.MavenProject are > > Aether org.sonatype.aether.util.artifact.DefaultArtifact in some > > collection. > > > > It seems that usage of memory grows inside maven and its dependency > > management subproject aether, not in m2e. All instances of > > org.apache.maven.project.MavenProject retain 780MB. > > I'll discuss this issue in aether-devel list because in case on hundreds > > of project in workspace can it cause OutOfMemoryError. > > > > Regards, > > > > Martin > > > > [1] http://dev.eclipse.org/mhonarc/lists/m2e-users/msg01115.html > > > > _______________________________________________ > > m2e-users mailing list > > [email protected] > > https://dev.eclipse.org/mailman/listinfo/m2e-users > _______________________________________________ > m2e-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/m2e-users _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
