Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] m2e-users] m2e memory usage - part II

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
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top