<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>LiquidFoot &#187; Eclipse</title>
	<atom:link href="http://www.liquidfoot.com/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.liquidfoot.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 17 Apr 2010 16:36:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Tweaking Eclipse</title>
		<link>http://www.liquidfoot.com/2006/09/07/tweaking-eclipse/</link>
		<comments>http://www.liquidfoot.com/2006/09/07/tweaking-eclipse/#comments</comments>
		<pubDate>Thu, 07 Sep 2006 23:30:14 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.liquidfoot.com/?p=204</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="body">
<p>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&#8217;t take <em>that</em> long to launch (may five or six seconds) compared to my Windows box (around 15 &#8211; 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&#8217;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&#8217;t help load times).</p>
<p>The first thing I did was change the shorcut target for Eclipse to be</p>
<div class="code"><a href="c:%5Ceclipse" target="_blank">C:\eclipse</a>\eclipse.exe -vm <span style="color: #0000ff;">&#8220;<a href="c:%5CProgram%20Files" target="_blank">C:\Program Files</a>\Java\jdk1.5.0_08\bin\javaw.exe&#8221;</span></div>
<p>Now I&#8217;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&#8217;re down to about 8 seconds.</p>
<p>The next thing I wanted to do is increase the default min and max memory settings. In c:\eclipse\eclipse.ini, you&#8217;ll see</p>
<div class="code">-vmargs<br />
-Xms40M<br />
-Xmx256M</div>
<p>I changed these to</p>
<div class="code">-vmargs<br />
-Xms256m<br />
-Xmx768m</div>
<p>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:</p>
<div class="code"><a href="c:%5Ceclipse" target="_blank">C:\eclipse</a>\eclipse.exe -vm <span style="color: #0000ff;">&#8220;<a href="c:%5CProgram%20Files" target="_blank">C:\Program Files</a>\Java\jdk1.5.0_08\bin\javaw.exe&#8221;</span> -vmargs -Xms256M -Xmx768M</div>
<p>If you have a multi-processor computer (and I believe this includes dual-core systems, though I haven&#8217;t read the docs on this), you can use some of the new VM ergonomics to self-tune garbage collection by adding this switch:</p>
<div class="code">-XX:+UseParallelGC</div>
<p>One last handy parameter is &#8220;-showlocation&#8221; which shows the current location of your workspace. If you have different workspaces, this is handy.</p>
<p>If you want to read more about some JVM garbage collection (and who doesn&#8217;t) here are some helpful links:</p>
<ul>
<li><a href="http://java.sun.com/javase/technologies/hotspot.jsp">Java SE HotSpot at a Glance</a></li>
<li><a href="http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html">Garbage Collector Ergonomics</a></li>
<li><a href="http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html">Tuning Garbage Collection with the 5.0 Java Virtual Machine</a></li>
<li><a href="http://java.sun.com/docs/performance/">Java Performance Documentation</a></li>
<li><a href="http://blogs.sun.com/watt/resource/jvm-options-list.html">A Collection of JVM Options</a> (check out the references at the bottom of the page)</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.liquidfoot.com/2006/09/07/tweaking-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
