Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Running out of permgen in eclipse

One footnote. Opening a pom in m2eclipse the first time seems to have
loaded 3K classes according to yourkit. I was impressed, but it's not
necessarily unjustified.

On Sun, Nov 21, 2010 at 9:53 AM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
> Does the number of loaded classes grow over time (with each workspace
> build, for example) or it's stays about the same after reaching initial
> high number?
>
> --
> Regards,
> Igor
>
> On 10-11-20 08:53 PM, Benson Margulies wrote:
>>
>> Having fixed the problem that ran out of permgen when building CXF
>> outside of eclipse, I turned back to 'inside of eclipse'.
>>
>> The default Helios install has a max perm gen of 256M. The import
>> succeeds, but subsequent building uses up all that permgen and then
>> things get stuck. There are 36K classes loaded at this point.
>>
>> Looking in more detail, I see that opening a pom for the first time
>> loads (according to yourkit) 3K classes. They are not primarily
>> 'maven' classes. The class loader with most of the maven classes has
>> 746 classes, 445 with no instances. The object graph under
>> MavenProject is very large, but that should mostly be ordinary memory,
>> not permgen.
>>
>> This being eclipse/osgi, there are, of course, many class loaders.
>>
>> It may just be that the maven universe, piled atop the existing
>> multitude of osgi class loaders in eclipse, just needs even more
>> permgen space than plain old eclipse.
>> _______________________________________________
>> m2e-dev mailing list
>> m2e-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-dev
>
> _______________________________________________
> m2e-dev mailing list
> m2e-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-dev
>


Back to the top