Topic: Ed Burnette [eclipsepowered]: 3.1M7 memory options

  Print this page

1.Ed Burnette [eclipsepowered]: 3.1M7 memory options Copy to clipboard
Posted by: Jove
Posted on: 2005-05-16 10:59

Eclipse 3.1M7 has an a couple of experimental options that can greatly improve its performance in the presense of virtual memory. The first is always enabled, and is Windows only. It prevents Windows from immediately paging out Eclipse if you iconify it. See bug 85072 for details.

The second is good for all platforms but is currently disabled by default. It causes Eclipse to perform a manual garbage collection occasionally during idle times. To use it you have to add a command line option: “-vmargs -Dide.gc=true”. There are some more options to control frequency. These are all undocumented and subject to change, but more information can be found in bug 92164. There is also a way to get Eclipse to print something when the GC’s are being done (more on that in a sec).

Finally, the Heap Status indicator was disabled in 3.1M7 but you can turn it back on by putting a line in your .options file (described below). This indicator shows the current max and used Java Heap memory, not including the Permanent space. (As a rule of thumb you can double the numbers in the Heap Status indicator to get the approximate amount that’s *really* being used.) See bug 80196 for more info on the indicator.

The following .options file will enable the Heap Status indicator and also make Eclipse print out a message whenever it does an idle garbage collect. Place the file in the Eclipse install directory and specify the -debug command line option when you invoke Eclipse.

# From John Arthorne in bug 92164:
# These .options values will print info to standard
# output when gc occurs:

org.eclipse.ui.ide/debug=true
org.eclipse.ui.ide/debug/gc=true

# And these options will turn on the heap usage view
# in the status line:

org.eclipse.ui/perf/showHeapStatus=true

# Note: originally you also had to set this option:
#org.eclipse.core.runtime/perf=true
# but in bug 80196, Nick Edgar says:
# I've changed it to only require the showHeapStatus debug option.

# end

http://www.eclipsepowered.org/archives/2005/05/15/31m7-memory-options/

2.Re:Ed Burnette [eclipsepowered]: 3.1M7 memory options [Re: Jove] Copy to clipboard
Posted by: liang_chen
Posted on: 2005-05-21 23:25

记得好像以前有个插件是可以看当前运行插件的列表,调入的类什么的,可以用来Profile,不知道是不是同一个。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923