Java Mailing List Archive

http://www.gg3721.com/

Home » eclipse-plugin-dev.groovy »

Re: [groovy-eclipse-plugin-dev] Memory consumption doubles in 1.6
dev version of plugin

Jochen Theodorou

2009-04-06

Replies: Find Java Web Hosting

Author LoginPost Reply

Is that now a problem due to changes in the plugin or due to changes in
Groovy ClassNode? Or is that still unknown yet?

bye blackdrag

Michael Klenk schrieb:
> Marcel Wagner schrieb:
>
> thanks for looking into this, here we go with a 900MB dump, zipped
> 140MB.
> This is the result after the first start of eclipse and groovy worked
> for 5 minutes on the project. After this, you can start to work ;-(
>
> Hope you can improve something
>
> Thanks Marcel for your dump it was very helpful to get a first look at
> the problem.
>
> The first analysis identifies the following classes which uses too much
> heap size:
> Accumulated Objects by Class
> Name   Nr Of Objects   Used Heap Size   Retained Heap Size
> ClassNode    3'177   432'072     479'244'864
> ModuleNode   1'087   86'960     29'443'712
>
> When you take a closer look at the the Class GroovyProjectModel which
> contains the most ClassNode Objects, I found that there are many empty
> HashMaps where located there.
> java.util.HashMap in the Object GroovyObjectModel
> Fill Ratio   # Objects   Shallow Heap   Retained Heap
> <= 0.00     2'003'236     80'129'440    >= 240'405'616
> <= 0.20     256'899   10'275'960    >= 38'250'056
> <= 0.40     6'358     254'320   >= 2'601'304
> <= 0.60     3'419     136'760   >= 513'292'480
>
> That is my first impression. I will take a look at the nodes and the
> changes between 1.5.6 and 1.6 to find out what caused the big increase
> of the memory usage between this versions and find also some other leaks.
>
> Cheers Mike
>
>
>
> --
> Michael Klenk
> Institut für Software - http://ifs.hsr.ch - +41 55 222 4625
> HSR Hochschule für Technik Rapperswil
> Oberseestr 10, Postfach 1475, CH-8640 Rapperswil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>


--
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.