<?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; java</title>
	<atom:link href="http://www.liquidfoot.com/tag/java/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>JVM Settings</title>
		<link>http://www.liquidfoot.com/2007/08/31/jvm-settings/</link>
		<comments>http://www.liquidfoot.com/2007/08/31/jvm-settings/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 15:24:50 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.liquidfoot.com/?p=186</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>I ran across this great <a href="http://blogs.sun.com/watt/resource/jvm-options-list.html">compilation of JVM settings</a> for the different versions of Java. Very useful for Java tuning!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liquidfoot.com/2007/08/31/jvm-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MS Access via JDBC</title>
		<link>http://www.liquidfoot.com/2007/02/02/ms-access-via-jdbc/</link>
		<comments>http://www.liquidfoot.com/2007/02/02/ms-access-via-jdbc/#comments</comments>
		<pubDate>Fri, 02 Feb 2007 22:23:14 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.liquidfoot.com/?p=198</guid>
		<description><![CDATA[We recently made the move from an IIS Windows web server to an Apache *nix based web server as part of our efforts to consolidate our library&#8217;s server infrastructure. And for reasons I won&#8217;t expound upon, we had one MS Access DSN that didn&#8217;t get migrated to MSSQL and that needed to be used still. [...]]]></description>
			<content:encoded><![CDATA[<div class="body">
<p>We recently made the move from an IIS Windows web server to an Apache *nix based web server as part of our efforts to consolidate our library&#8217;s server infrastructure. And for reasons I won&#8217;t expound upon, we had one MS Access DSN that didn&#8217;t get migrated to MSSQL and that needed to be used still. Since ColdFusion uses a Windows only driver for MS Access, I needed to figure out a way around this. I found a couple of JDBC drivers for Access (Easysoft&#8217;s <a href="http://www.easysoft.com/products/data_access/jdbc_odbc_bridge/index.html">JDBC-ODBC Bridge</a> and HXTT&#8217;s <a href="http://www.hxtt.com/access.html">Access Pure Java JDBC Drivers</a>), but these seemed to be a bit on the expensive side for the short amount of time that I&#8217;d need to keep Access in production.</p>
<p>I did notice on Easysoft&#8217;s website that they were using the JdbcOdbc bridge, so after a little bit more digging, I found the syntax to use configure ColdFusion to use MS Access through the JdbcOdbc Bridge; the JDBC URL is</p>
<div class="code">jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=/path/to/datasource.mdb;DriverID22;</div>
<p>and the Driver Class</p>
<div class="code">sun.jdbc.odbc.JdbcOdbcDriver</div>
<p>For the very basic inserting of data from a seldom-used web form into a single table, this band aid fix has been doing pretty good!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.liquidfoot.com/2007/02/02/ms-access-via-jdbc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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[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 that 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 [...]]]></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>
