<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Wayne Graham&apos;s Blog - Eclipse</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:12 -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>
			
		 	
			
			
			<item>
				<title>SFTP for Eclipse</title>
				<link>http://swem.wm.edu/blogs/waynegraham/index.cfm/2006/4/13/SFTP-for-Eclipse</link>
				<description>
				
				One of my gripes with Eclipse platform has been lack of support for a (functional) SFTP plugin. I had tried about a year ago, but came up empty with something that would work. I gave it another go last week and found &lt;a href=&quot;http://kosh.kmem.org/projects/esftp/&quot; title=&quot;ESftp&quot;&gt;ESftp  &lt;/a&gt;. It took a couple of tries to get it working (more on that in a second), but once I did, I&apos;ve been finding it really useful. 

What I really have liked is the ability to configure the plugin at the project and folder levels (in case you need to send them in different places). 

The one sticky-point I found in getting it up and running was the fact that the plugin has dependencies on the JSSH2 and Jsch which are not packaged directly with the extension. The author gives a reason in the README file, but like most folks, I just plugged the extension into Eclipse and expected it to work since there&apos;s no mention of it on their website. 

Anyway, here are the brief directions to getting this working...

&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=151842&quot;&gt;Download&lt;/a&gt; both the &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=151842&amp;package_id=167998&amp;release_id=390999&quot;&gt;esftp &lt;/a&gt;and &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=151842&amp;package_id=169901&amp;release_id=371958&quot;&gt;esftp-lib &lt;/a&gt;files&lt;/li&gt;
&lt;li&gt;Extract the esftp.zip somewhere convenient (it automatically creates a directory named &quot;plugins/org.kmem.kosk.sftp_&amp;lt;version&amp;gt;&quot;)&lt;/li&gt;
&lt;li&gt;Extract esftp-lib.zip into the same directory above so the /lib folder is inside of plugins/org.kmem.kosk.sftp_&amp;lt;version&amp;gt;&lt;/li&gt;
&lt;li&gt;Move the entire org.kmem.kos.sftp_&amp;lt;version&amp;gt; into $ECLIPSE_HOME/plugins&lt;/li&gt;
&lt;li&gt;Run Eclipse with the clean command line option
&lt;code&gt;
eclipse -clean
&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

You should then have a new menu bar named ESftp. To configure your global settings, go to Window/Preferences.../ESftp. To configure a project, right click on the root folder and select Properties. For an individual folder, again, right-click and select Properties. 

After you&apos;ve gotten everything configured the way you want, just the the contextual ESftp Get File, Put + Save File, and Put File actions to transfer items back and forth. 

Another (similar) project I found was &lt;a href=&quot;http://deployer.sourceforge.net/&quot;&gt;deployer&lt;/a&gt;. I haven&apos;t played with that particular plugin as the per-folder settings in ESftp were more of what I was looking for. The one thing I still would love is an ANT task to SFTP...the only downside is that there has to be a password in clear text somewhere.

If you want to give this a whirl, and are having a problem getting the plugin to work, drop me a line and I&apos;ll send you the entire (presumably) working plugin.
				
				</description>
						
				
				<category>Web</category>				
				
				<category>Eclipse</category>				
				
				<pubDate>Thu, 13 Apr 2006 10:59:00 -0500</pubDate>
				<guid>http://swem.wm.edu/blogs/waynegraham/index.cfm/2006/4/13/SFTP-for-Eclipse</guid>
				
			</item>
			
		 	
			</channel></rss>