<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Wayne Graham&apos;s Blog - Windows</title>
			<link>http://swem.wm.edu/blogs/waynegraham/index.cfm</link>
			<description>ColdFusion Development for Academic Libraries</description>
			<language>en-us</language>
			<pubDate>Sun, 22 Nov 2009 17:56:41 -0500</pubDate>
			<lastBuildDate>Thu, 07 Sep 2006 16:30:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>wsgrah@wm.edu</managingEditor>
			<webMaster>wsgrah@wm.edu</webMaster>
			
			
			
			
			
			<item>
				<title>Tweaking Eclipse</title>
				<link>http://swem.wm.edu/blogs/waynegraham/index.cfm/2006/9/7/Tweaking-Eclipse</link>
				<description>
				
				I finally got fed up yesterday with the slow speed at which Eclipse was launching on my Windows box. On my Linux box, it doesn&apos;t take &lt;em&gt;that&lt;/em&gt; long to launch (may five or six seconds) compared to my Windows box (around 15 - 20 seconds). I know I have a lot of plugins, but it was getting a little ridiculous. I started poking around and I noticed in the configuration details (Help / About Eclipse SDK / Configuration Details) that the vm that was launching was 1.4. Ok, so there&apos;s one problem. I also noticed that the max memory setting was 256MB (-Xmx256M). Since this box has 2GB of RAM, I figured 256MB is a little on the low side (and note, mucking around with the heap sizes won&apos;t help load times). 

The first thing I did was change the shorcut target for Eclipse to be 

&lt;code&gt;
C:\eclipse\eclipse.exe -vm &quot;C:\Program Files\Java\jdk1.5.0_08\bin\javaw.exe&quot;
&lt;/code&gt;

Now I&apos;m sure that Eclipse will launch with Java 5 and (hopefully) speed things up a bit. Double-click on the short-cut, and sure enough, we&apos;re down to about 8 seconds.

The next thing I wanted to do is increase the default min and max memory settings. In c:\eclipse\eclipse.ini, you&apos;ll see

&lt;code&gt;
-vmargs
-Xms40M
-Xmx256M
&lt;/code&gt;

I changed these to

&lt;code&gt;
-vmargs
-Xms256m
-Xmx768m
&lt;/code&gt;

This increases the minimum memory space to 256M and the maximum to 768M. You can also do this by adding these vmargs to the shortcut target:

&lt;code&gt;
C:\eclipse\eclipse.exe -vm &quot;C:\Program Files\Java\jdk1.5.0_08\bin\javaw.exe&quot; -vmargs -Xms256M -Xmx768M
&lt;/code&gt;

If you have a multi-processor computer (and I believe this includes dual-core systems, though I haven&apos;t read the docs on this), you can use some of the new VM ergonomics to self-tune garbage collection by adding this switch:

&lt;code&gt;
-XX:+UseParallelGC
&lt;/code&gt;

One last handy parameter is &quot;-showlocation&quot; which shows the current location of your workspace. If you have different workspaces, this is handy.

If you want to read more about some JVM garbage collection (and who doesn&apos;t) here are some helpful links:

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://java.sun.com/javase/technologies/hotspot.jsp&quot;&gt;Java SE HotSpot at a Glance&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html&quot;&gt;Garbage Collector Ergonomics&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html&quot;&gt;Tuning Garbage Collection with the 5.0 Java Virtual Machine&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://java.sun.com/docs/performance/&quot;&gt;Java Performance Documentation&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://blogs.sun.com/watt/resource/jvm-options-list.html&quot;&gt;A Collection of JVM Options&lt;/a&gt; (check out the references at the bottom of the page)&lt;/li&gt;
&lt;/ul&gt;
				
				</description>
						
				
				<category>Windows</category>				
				
				<category>Eclipse</category>				
				
				<category>Java</category>				
				
				<pubDate>Thu, 07 Sep 2006 16:30:00 -0500</pubDate>
				<guid>http://swem.wm.edu/blogs/waynegraham/index.cfm/2006/9/7/Tweaking-Eclipse</guid>
				
			</item>
			
		 	
			</channel></rss>