Memory Leak? [message #202671] |
Thu, 05 May 2005 16:29  |
Eclipse User |
|
|
|
Originally posted by: james_adams.yahoo.com
It appears that Eclipse has a memory leak. This is based on my
observation of the amount of memory used by "javaw" when Eclipse is
running. The amount just goes up and up, especially if I run Ant tasks
from the "External Tools" menu. Is this a known bug? Is there a way to
modify my Eclipse startup shortcut by adding some extra command line
options so that this will be avoided? It's not the end of the world for
me, but it would be nice to not have to restart Eclipse once or twice a
day.
I'm using Eclipse 3.1M6 on a Windows XP system.
--James
|
|
|
|
|
|
|
|
|
Re: Memory Leak? [message #202889 is a reply to message #202864] |
Mon, 09 May 2005 00:19  |
Eclipse User |
|
|
|
Thanks Eugene.
Yes Ant causes lots of classes to be loaded if you are running in the same
JRE as Eclipse...each build creates a new classloader and reloads the Ant
classes.
I plan to make the time to do more profiling but in recent tests that I have
done on 3.1 I am not seeing problems.
Of course each Ant buildfile is different and will result in different
classes being loaded and possibly different memory leaks...possibly from the
Apache Ant implementation or from the Eclipse integration.
The interesting part is which classes are not unloaded and why...
Darins
"Eugene Kuleshov" <eu@md.pp.ru> wrote in message
news:427DB6D2.2040503@md.pp.ru...
> Darin,
>
> I've been using VisualGC tool to monitor Eclipse memory and noticed that
> Ant executios cause a lot of classloading. That heavily hit PermGen space,
> which is not expanded by VM and usually maxed to something like 64Mb on
> 1.4.2 VM. Most of those classes are unloaded after execution but not all
> of them. It also seems that problem is worse on Eclipse 3.1 then on 3.0. I
> can say this because we have added and builders to about 20 projects in
> thhe workspace and when I do complete rebuild without adjusting PermGen
> allocation I'm constantly getting an out of memory error on 3.1 but not on
> 3.0. If I'm not mistaken, there was some changes in Ant's classloader
> between versions used for 3.0 and 3.1, but that is only my guess.
>
> regards,
> Eugene
>
>
> Darin Swanson wrote:
>
>>"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
>>news:d5e20v$4ga$1@news.eclipse.org...
>>
>>>If you are running the Ant tasks within the IDE JVM, then this is
>>>possible. Ant itself doesn't clean itself up completely and leaves
>>>things laying around. If you see this when running Ant in a separate
>>>JVM, then that would be different story.
>>>
>>>
>>>--
>>>Thanks,
>>>Rich Kulp
>>>
>>
>>I would be interested in the tasks etc you are using within your Ant build
>>file that is causing the leaks no matter if you are running in the same
>>JRE
>>or not.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03086 seconds