Running Garbage Collection [message #233465] |
Wed, 25 April 2007 00:27  |
Eclipse User |
|
|
|
Originally posted by: sushant.sirsikar.gmail.com
Hello All,
I have created one application using GEF and EMF. As I start using
application, heap size continually goes on increasing .But even if I run
my application and keep it in idle state, eclipse would not run garbage
collection. So if I used my application for long time, it goes out of heap
size. How can I force Eclipse or GEF to do garbage collection after
particular time spam? Its not logical to put some timer and then ask
eclipse to do garbage collection. It should happen automatically after
particular time spam.
Thanks in advance.
Sushanr Sirsikar
|
|
|
|
|
|
|
|
|
|
Re: Running Garbage Collection [message #233640 is a reply to message #233618] |
Fri, 27 April 2007 09:28  |
Eclipse User |
|
|
|
Originally posted by: lamont_gilbert.rigidsoftware.com
On Fri, 27 Apr 2007 04:44:33 +0000, Sushant Sirsikar wrote:
> Thanks.Actually i know those VM options. But in my case eclipse is not
> refreshing or reducing heap size.It is not doing garbage collection.So is
> there any programmatic approach to force eclipse or gef to go for garbage
> collection?
NO. GC is a JVM/Java thing, not an Eclipse thing. If you want the GC to
run, you need to tune the GC, or run it yourself. System.gc().
|
|
|
Powered by
FUDForum. Page generated in 0.03615 seconds