| Author |
Eclipse and Garbage Collection
|
Alex Belt
Ranch Hand
Joined: Jul 12, 2001
Posts: 53
|
|
|
I've been working with eclipse for a little while, and I have found what has been an annoyance for me. It stops responding somewhat frequently for brief periods while the JVM does garbage collection. Is there a way to make garbage collection occur in the background so I don't lose response in my IDE? I find it frustrating to be moving in the code and then I have to take a break while it does gc duty for a minute or two.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11945
|
|
|
Wasn't JDK 1.4.x supposed to fix this (by the virtue of multi-threaded garbage collection)?
|
Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Alex Belt
Ranch Hand
Joined: Jul 12, 2001
Posts: 53
|
|
|
That's quite possible, but for a host of reasons I can't go into, I can't use 1.4.
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4120
|
|
|
Is it "I can't use 1.4" for technological reasons (i.e. it's not out for my computer yet (don't know what system that would be...) ) or "I can't use 1.4" for some beaureucratic management/project reason. If it's the latter, you can install both JDK's on your system, and *run* Eclipse under 1.4, but have it use whatever other version you want to *compile* your source with.
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
Ed Burnette
Author
Ranch Hand
Joined: Jun 10, 2003
Posts: 142
|
|
Also you can give Sun's JVM more memory to play with (making gc less frequent) by using the -Xmx option. For example, allocates 256MB to the JVM. You might have to increase or decrease the number to find a good value for your system.
|
Ed Burnette, Author of Hello Android
Blog: ZDNet's Dev Connection - Twitter: @eburnette
|
 |
Talha Kabakus
Greenhorn
Joined: Feb 27, 2010
Posts: 23
|
|
same here.. please can someone guide us???
Here's my eclipse.ini configuration :
Thanks in advance..
|
 |
Mark E Hansen
Ranch Hand
Joined: Apr 01, 2009
Posts: 639
|
|
Talha Kabakus wrote:same here.. please can someone guide us???
Same here what? The topic you're posting to was from 2003 and had to do with someone that was not able to upgrade their JVM to the 1.4 level. Are you saying that you're still running on a JVM version < 1.4?
Rather than trying to wake the zombies, perhaps you can just post a new topic with a description of your problem.
|
 |
Talha Kabakus
Greenhorn
Joined: Feb 27, 2010
Posts: 23
|
|
Mark E Hansen wrote:Same here what? The topic you're posting to was from 2003 and had to do with someone that was not able to upgrade their JVM to the 1.4 level. Are you saying that you're still running on a JVM version < 1.4?
Rather than trying to wake the zombies, perhaps you can just post a new topic with a description of your problem.
I've already created topic, here's the link : Click
Thanks for your interest..
|
 |
 |
|
|
subject: Eclipse and Garbage Collection
|
|
|