Friday, July 1, 2011

When Windows+Eclipse+Firefox slow down

All big garbage collected programs have a problem on MS Windows where, if you iconify them, the OS drastically reduces the working set size, making its VM pages available to other processes. When you restore the program, then the first time it tries to do a garbage collect (which could be several times a second) it can suffer a long pause while it brings in almost its entire virtual memory footprint in order to chase references. I've seen it take as long as 200 seconds to do this, during which time the program is unusable.

Workaround : use windows key + D or show desktop buttton instead of minimize.
More details

For eclipse performance imporvement, update shortcut as below:
"C:\Program Files\eclipse\eclipse.exe" -vm c:\j2sdk1.4.2\jre\bin\javaw.exe -vmargs -Xms64m -Xmx384m -XX:CompileThreshold=5 -XX:+UseParallelGC
The flags are discussed on the following website: http://www.burnthacker.com/archives/000049.html.



No comments: