<?xml version="1.0" encoding="iso-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Greg Luck&apos;s WebLog</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/" />
<modified>2008-05-06T23:16:27Z</modified>
<tagline>The opinions expressed here are those of the author, not of my employer or clients.</tagline>
<id>tag:gregluck.com,2008:/blog/1</id>
<generator url="http://www.movabletype.org/" version="3.17">Movable Type</generator>
<copyright>Copyright (c) 2008, gluck</copyright>
<entry>
<title>cvs unknown host error</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2008/05/cvs_unknown_hos.html" />
<modified>2008-05-06T23:16:27Z</modified>
<issued>2008-05-06T23:14:27Z</issued>
<id>tag:gregluck.com,2008:/blog/1.149</id>
<created>2008-05-06T23:14:27Z</created>
<summary type="text/plain">I am getting a but rusty on cvs. I went to run cvs up on a project and got &quot;unknown host error&quot;. A google search did not yield anything useful. Playing around with it, my problem was that the host...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Open Source</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
I am getting a but rusty on cvs. I went to run cvs up on a project and got &quot;unknown host error&quot;.

A google search did not yield anything useful.

Playing around with it, my problem was that the host was not added to ssh&apos;s known hosts. I sshed to the host and accepted it into known hosts. 

Then cvs worked fine. 

</content>
</entry>
<entry>
<title>Mac OS X Desktop Switching bug fixed by making Java 6 your default</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2008/05/mac_os_x_deskto.html" />
<modified>2008-05-04T22:32:29Z</modified>
<issued>2008-05-04T22:26:09Z</issued>
<id>tag:gregluck.com,2008:/blog/1.148</id>
<created>2008-05-04T22:26:09Z</created>
<summary type="text/plain">As readers will know, Apple released Java 6 for 64 bit intel architectures this week. What you may not know, is that making it your first preference in the &quot;Java Application Runtime Settings&quot; &quot;Java Preference&quot; app in Utilities, fixes a...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Mac OS X</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>As readers will know, Apple released Java 6 for 64 bit intel architectures this week. </p>

<p>What you may not know, is that making it your first preference in the "Java Application Runtime Settings" "Java Preference" app in Utilities, fixes a nasty app switching bug you get when using spaces.</p>

<p>That bug is that if you change away from a space and then change back, the Java app you had in focus has gone and it is fiddly to get back.</p>]]>

</content>
</entry>
<entry>
<title>Curlew Retreat is now open</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2008/05/curlew_retreata.html" />
<modified>2008-05-02T13:13:10Z</modified>
<issued>2008-05-02T13:09:40Z</issued>
<id>tag:gregluck.com,2008:/blog/1.147</id>
<created>2008-05-02T13:09:40Z</created>
<summary type="text/plain">Curlew Retreat is now open. Curlew Retreat is a luxury villa on a one hundred acre estate located just to the north east of Stanthorpe. It overlooks a beautiful gorge on the Maryland River. This has been a project of mine for the past...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Social Commentary</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p id="hra-0"><a id="gk41" href="http://curlewretreat.com.au" target="_blank" title="Curlew Retreat"><font class="Apple-style-span" color="#000000" id="hra-1"><span class="Apple-style-span" id="hra-2">Curlew Retreat</span></font></a> is now open. Curlew Retreat is a luxury villa on a one hundred acre estate located just to the north east of Stanthorpe. It overlooks a beautiful gorge on the Maryland River.</p><p id="hra-0"> </p><p id="hra-0">This has been a project of mine for the past couple of years which has now come to fruition.</p><p id="hra-0"><br id="s5kw0"></p><p id="hra-0">It is a nice place to get away to. Because of the height which is 2,800 feet above sea level it has a cool crisp climate with frosts about 5 months of the year. Day time temperatures tend to be 4-6 degrees cooler than Brisbane.</p><div id="n55f2"><div style="text-align: left; padding-top: 1em; padding-bottom: 1em; padding-right: 0px; padding-left: 0px" id="dk1f"><img src="http://docs.google.com/File?id=df6bm3k3_14cqj9gkds_b" style="width: 428px; height: 321px" id="xs330"></div><div style="text-align: left; padding-top: 1em; padding-bottom: 1em; padding-right: 0px; padding-left: 0px" id="dk1f">It is located two and quarter hours south west of Brisbane, QLD, Australia.</div><div style="text-align: left; padding-top: 1em; padding-bottom: 1em; padding-right: 0px; padding-left: 0px" id="dk1f"><img src="http://docs.google.com/File?id=df6bm3k3_15hm6z46d3_b" style="width: 414px; height: 524px" id="g19:0"> </div><div style="text-align: left; padding-top: 1em; padding-bottom: 1em; padding-right: 0px; padding-left: 0px" id="dk1f">For anyone who is interested the retreat is available for rent. See <a id="kgb:" href="http://curlewretreat.com.au" target="_blank" title="http://curlewretreat.com.au">http://curlewretreat.com.au</a>  for information, rates and instant booking.</div></div><br id="j_ta0">]]>

</content>
</entry>
<entry>
<title>Open Message Queue Session at Community One</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2008/04/open_message_qu.html" />
<modified>2008-04-18T04:37:48Z</modified>
<issued>2008-04-18T04:33:59Z</issued>
<id>tag:gregluck.com,2008:/blog/1.146</id>
<created>2008-04-18T04:33:59Z</created>
<summary type="text/plain">Hi I am presenting a session on JMS and OpenMQ at Community One 2008 as follows: Session ID: S297892 Session Title: OpenMQ Session Abstract: This session discusses why you should consider Java™ Message Service (JMS) and OpenMQ for scalable and...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Java</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>Hi</p>

<p>I am presenting a session on JMS and OpenMQ at Community One 2008 as follows: </p>

<p>Session ID:	        S297892<br />
Session Title:	OpenMQ<br />
Session Abstract:	This session discusses why you should consider Java™ Message Service (JMS) and OpenMQ for scalable and reliable architectures. The presentation includes a use case from the No. 2 Australian e-business site.<br />
Track:	       GlassFish™<br />
Duration:	55<br />
Speaker(s):	Greg Luck<br />
Where:           Moscone South - Esplanade Room 305</p>

<p>(This talk was initially presented at Sun Technology Days in Sydney last month by Dave Whitla where it generated a great deal of interest.)</p>]]>

</content>
</entry>
<entry>
<title>Glassfish Unconference - Moscone Center San Francisco 4 May 2008</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2008/04/glassfish_uncon.html" />
<modified>2008-04-18T01:40:23Z</modified>
<issued>2008-04-18T01:35:45Z</issued>
<id>tag:gregluck.com,2008:/blog/1.145</id>
<created>2008-04-18T01:35:45Z</created>
<summary type="text/plain"> I am going to the Glassfish Unconference which is being held at the Moscone Center San Francisco 4 May 2008. I am interested in or might lead discussions on: SPNEGO - Kerberos and Glassfish Open Message Queue Maven Glassfish...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Java</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p/>
I am going to the Glassfish Unconference which is being held at the Moscone Center San Francisco 4 May 2008. 
<p/>
I am interested in or might lead discussions on:
<p/>
SPNEGO - Kerberos and Glassfish 
Open Message Queue
Maven Glassfish Plugin
Ehcache and Glassfish
<p/>
If you are interested in these please come along and have a chat. See <a href="http://wikis.sun.com/display/GFunconfSF08/GlassFish+unconference+planning">http://wikis.sun.com/display/GFunconfSF08/GlassFish+unconference+planning</a>.]]>

</content>
</entry>
<entry>
<title>Glassfish Case Study from Sun Tech Days&apos; Glassfish Day in Sydney March 2008</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2008/03/glassfish_case.html" />
<modified>2008-03-12T03:48:02Z</modified>
<issued>2008-03-12T02:37:47Z</issued>
<id>tag:gregluck.com,2008:/blog/1.144</id>
<created>2008-03-12T02:37:47Z</created>
<summary type="text/plain">I gave a case study on our use of Glassfish V1UR1 at the Sun Tech Days&apos; Glassfish Day in Sydney March 2008 for which the slides and podcast are available here. With Glassfish V2UR1 now out and a great roadmap...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Java</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>I gave a case study on our use of Glassfish V1UR1 at the Sun Tech Days' Glassfish Day in Sydney March 2008 for which the slides and podcast are available <a href=" http://blogs.sun.com/glassfishpodcast/entry/episode_011_wotif_com_case">here</a>.</p>

<p>With Glassfish V2UR1 now out and a great roadmap to V3, Glassfish is looking great.</p>]]>

</content>
</entry>
<entry>
<title>Ehcache is the  SourceForge.net February project of the month</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2008/03/ehcache_is_the.html" />
<modified>2008-03-09T03:45:41Z</modified>
<issued>2008-03-09T03:44:12Z</issued>
<id>tag:gregluck.com,2008:/blog/1.143</id>
<created>2008-03-09T03:44:12Z</created>
<summary type="text/plain">Ehcache has been honoured as the February 2008 SourceForge project of the month. See http://sourceforge.net/community/index.php/potm-200802/....</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Java</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
Ehcache has been honoured as the February 2008 SourceForge project of the month. See http://sourceforge.net/community/index.php/potm-200802/.

</content>
</entry>
<entry>
<title>Who can tell me about the Brisbane Bottle Exchange Propty Limited</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/12/who_can_tell_me.html" />
<modified>2008-04-23T03:35:53Z</modified>
<issued>2007-12-27T09:40:29Z</issued>
<id>tag:gregluck.com,2007:/blog/1.142</id>
<created>2007-12-27T09:40:29Z</created>
<summary type="text/plain">I am on holidays at present on Curlew Retreat. I went for a walk today down a reentrant which joins Curlew Gorge. I found a beer bottle made by the &quot;Brisbane Bottle Exchange Propty Limited&quot;, embossed on the base of...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Social Commentary</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>I am on holidays at present on Curlew Retreat. I went for a walk today down a reentrant which joins Curlew Gorge. I found a beer bottle made by the "Brisbane Bottle Exchange Propty Limited", embossed on the base of the neck of the bottle.</p>

<p>The land was "selected" in the 1880s and has been inhabited since then. I suspect the bottle might go back almost as far. </p>

<p>Various search engines do not turn up much. If anyone knows anything about this please comment. </p>]]>

</content>
</entry>
<entry>
<title>Antipodean Summer Reading =&gt; Lulu.com</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/12/antipodean_summ.html" />
<modified>2007-12-18T02:53:50Z</modified>
<issued>2007-12-17T07:57:15Z</issued>
<id>tag:gregluck.com,2007:/blog/1.141</id>
<created>2007-12-17T07:57:15Z</created>
<summary type="text/plain">I am reading two books at the moment: The Long Tail and 50 Great E-businesses and the minds behind them. The Long Tail is by Chris Anderson and was written in 2004. Call me a late adopter. I thought I...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Social Commentary</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>I am reading two books at the moment: The Long Tail and 50 Great E-businesses and the minds behind them. </p>

<p>The Long Tail is by Chris Anderson and was written in 2004. Call me a late adopter. I thought I understood the long tail, but reading the book introduces the idea of the democratization of production, aggregators and findability. I picked it up in a discount bin in a bookstore in Toowoomba, Queensland while looking for something to veg out on before a wedding. Perhaps I should tell Chris he was not a "hit". There, anyway.</p>

<p>50 Great E-businesses and the minds behind them is a book by a Melbourne couple published in mid 2007. I work for one of the companies mentioned in their book so it caught my interest. But there are so many others that I had: a) not heard of; or b) heard of but nor seriously checked out.</p>

<p>One of the former is Lulu.com. Both books mentioned Lulu.com, which piqued my interest. And they won a Web 2.0 award. Founded by RedHat co-founder Bob Young, it democratizes publishing. Last year I was looking at publishing a book on ehcache. I had 150 pages that I had put a fair bit of work into. I thought it would be a simple matter of finding a technical publisher and then sitting back and getting royalties. NOT. Bob discovered the same thing and decided to do something about it.</p>

<p>I have had my ehcache book self-published up on Lulu.com for a few weeks now. The only real issue I came across was Lulu's requirement to embed fonts. The best answer I have come up with is to use Save As PDFX-3 from Preview, which embeds fonts while retaining clear previews. Lulu is great: I get to publish my book and people get to buy it. And the middleman is reasonable. </p>

<p>See <a href="http://www.lulu.com/content/1538666">http://www.lulu.com/content/1538666</a> to see the result.</p>

<p>And maybe I am three years late to the ideas introduced in the Long Tail, but I think there is, to use a much abused term, a paradigm shift underway. In Australia it is going to take low cost high speed broadband for the digital media long tail to really work.</p>

<p>BTW, one job I have to do is to upgrade Movable Type to fix the spam problem I have with this blog. Perhaps a job for the Xmas break. If anyone wants to comment, please just email me and I will post it.</p>]]>

</content>
</entry>
<entry>
<title>Ehcache Guide and Reference now available as a book</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/11/ehcache_guide_a.html" />
<modified>2007-11-29T04:29:46Z</modified>
<issued>2007-11-29T04:07:31Z</issued>
<id>tag:gregluck.com,2007:/blog/1.140</id>
<created>2007-11-29T04:07:31Z</created>
<summary type="text/plain">Ehcache Guide and Reference for the forthcoming 1.4.0 release is available as a book. The price for the high quality bound edition is USD49.95 plus shipping. The price for the downloadable print-ready version is USD37.50. The book has 154 pages...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Java</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>Ehcache Guide and Reference for the forthcoming 1.4.0 release is available as a book. The price for the high quality bound edition is USD49.95 plus shipping. The price for the downloadable print-ready version is USD37.50. The book has 154 pages and covers the following:</p>

<p>- Preface<br />
- Introduction<br />
- Getting Started<br />
- Dependencies<br />
- Cache Concepts<br />
- Cache Configuration<br />
- Storage Options<br />
- Cache Eviction Algorithms<br />
- Code Samples<br />
- Class loading and Class Loaders<br />
- Performance Considerations<br />
- Garbage Collection<br />
- Cache Decorators<br />
- Java EE Servlet Caching<br />
- Distributed Caching<br />
- Distributed Design<br />
- Shutting Down Ehcache<br />
- Logging & Debugging<br />
- JMX Management & Monitoring<br />
- CacheManager Event Listeners<br />
- Cache Event Listeners<br />
- Cache Exception Handlers<br />
- Cache Extensions<br />
- Cache Loaders<br />
- Hibernate Caching<br />
- Constructs Design<br />
- Using ehcache with Hibernate<br />
- Tomcat Issues and Best Practices<br />
- JSR107 (JCACHE) Support<br />
- Building From Source<br />
- FAQ</p>

<p>Many people have asked for a format for the documentation where it can be printed out as a book and even where they can get it. </p>

<p>Of course, full documentation in html will always remain available online at http://ehcache.sf.net.</p>

<p>Buy it from the <a href="http://stores.lulu.com/ehcache">Ehcache Storefront</a> at Lulu Books. </p>

<p><a href="http://www.lulu.com/commerce/index.php?fBuyContent=1538666"><img src="http://www.lulu.com/images/services/buy_now_buttons/en/blue.gif" border="0" alt="Support independent publishing: buy this book on Lulu."></a></p>]]>

</content>
</entry>
<entry>
<title>Announcing Curlew Retreat</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/10/_regular_reader.html" />
<modified>2007-10-15T09:04:57Z</modified>
<issued>2007-10-15T09:02:13Z</issued>
<id>tag:gregluck.com,2007:/blog/1.139</id>
<created>2007-10-15T09:02:13Z</created>
<summary type="text/plain"> Regular readers of my blog know it for discussions of technology, Java and Open Source. For the past four years I have been working on Curlew Retreat. It is now a few months away from completion, so I thoughtÂ it...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Leisure</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<div>   Regular readers of my blog know it for discussions of technology, Java and Open Source. </div> <div>   <br class="webkit-block-placeholder"> </div> <div>   For the past four years I have been working on Curlew Retreat. It is now a few months away from completion, so I thoughtÂ it time to announce it. </div> <div><br></div><p><div style="text-align: left; padding-top: 1em; padding-bottom: 1em; padding-right: 0px; padding-left: 0px" id="lgck"><img src="http://docs.google.com/File?id=agbdcfj3mkdt_11hkw9w77b" style="width: 361px; height: 91px"></div></p><p><br></p><div><span class="Apple-style-span" style="font-family: Times; font-size: 16px; text-align: left"><p class="paragraph_style_1" style=" font-variant: normal; letter-spacing: 0px; line-height: 20px; padding-bottom: 0px; padding-top: 0px; text-align: left; text-indent: 0px; text-transform: none; font-family: Verdana; margin-top: 0pt; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt"><font size="2">Curlew Retreat - your own luxury villa on your own estate, overlooking a beautiful gorge on the Maryland River - creates a retreat of privacy, quiet and serenity, all perfectly located just to the north east of Stanthorpe.Â Supremely romantic, indulgent and exclusive, Curlew Retreat is the ultimate boutique 2 bedroom villa perfect for couples or families to relax, revive and re-energise.Â  from the hustle and bustle of day to day life.Â Curlew, high up in the Mountain country, has a cool, crisp climate, a world away from the heat of the lowlands. With 100 beautiful acres to yourself, follow the graded track to the gorge, and, in summer, enjoy the spectacular natural rock swimming pool, or simply relax in the quiet and solitude.</font></p></span></div> <div style="text-align: justify;">   <br class="webkit-block-placeholder"> </div><div style="text-align: justify;">The website is here: <a href="http://curlewretreat.com.au">http://curlewretreat.com.au</a></div><div style="text-align: justify;"><br></div><div style="text-align: justify;"><br class="webkit-block-placeholder"></div><div style="text-align: justify;">For the technologists:</div><div style="text-align: justify;"><br class="webkit-block-placeholder"></div><div style="text-align: justify;">The site was created in iWeb from iLife '08. It turns out this tool is almost perfectly suited for creating brochure style web sites. Coming soon but not yet integrated is booking from the web site itself. This takes 3-4 weeks to set up with the supplier. So why iWeb? I hadn't used it before and I was focusing on graphic design and copy writing. For once I did not want to be distracted by technology. And the ability to work from 20 or so professionally designed themes with more from third party artisans was huge. In the end the whole site was done without input from a graphic designer.</div><div style="text-align: justify;"><br class="webkit-block-placeholder"></div><div style="text-align: justify;">The animation on the home page is Flash. This is the first Flash I have done. Flash is a bit of a paradigm shift from the normal Java server side stuff I do. But it's 99+% browser market share is hard to argue with. The competing approach from Apple - Quicktime, will involve a download for lots of folks, so not an option. In the future Flash's dominance for this type of thing is going to be challenged by Silverlight and JavaFX. But for now it is the way to go.</div><div style="text-align: justify;"><br class="webkit-block-placeholder"></div><div style="text-align: justify;">All the other magic on the site, including the image gallery, is out of the box with iWeb.Â </div><div style="text-align: justify;"><br class="webkit-block-placeholder"></div><div style="text-align: justify;"><br class="webkit-block-placeholder"></div><div style="text-align: justify;"><br class="webkit-block-placeholder"></div>]]>

</content>
</entry>
<entry>
<title>Adjusting the networking MTU on Mac OS X</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/09/adjusting_the_n.html" />
<modified>2007-09-13T23:15:59Z</modified>
<issued>2007-09-13T23:09:10Z</issued>
<id>tag:gregluck.com,2007:/blog/1.137</id>
<created>2007-09-13T23:09:10Z</created>
<summary type="text/plain">My wife is newly involved with a Arbonne, a network selling cosmetics company. They set up in Australia a few months ago. She has an a website http://arbonnebrisbane.myarbonne.com.au . Anyway the web site did not work from Mac OS X...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Mac OS X</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>My wife is newly involved with a Arbonne, a network selling cosmetics company. They set up in Australia a few months ago. She has an a website http://arbonnebrisbane.myarbonne.com.au . Anyway the web site did not work from Mac OS X or Linux from our home, only Windows (running in VM Ware). The problem was seen in all browsers, curl and wget. Not a problem I have seen before. </p>

<p>The issue, viewed from wget, looks like:</p>

<p>Using wget we get:</p>

<p>http://www.myarbonne.com.au/<br />
           => `index.html.1'<br />
Resolving www.myarbonne.com.au... 208.179.207.104<br />
Caching www.myarbonne.com.au => 208.179.207.104<br />
Connecting to www.myarbonne.com.au|208.179.207.104|:80... connected.<br />
Created socket 4.<br />
Releasing 0x00516290 (new refcount 1).</p>

<p>---request begin---<br />
GET / HTTP/1.0<br />
User-Agent: Wget/1.10.2<br />
Accept: */*<br />
Host: www.myarbonne.com.au<br />
Connection: Keep-Alive</p>

<p>---request end---<br />
HTTP request sent, awaiting response...<br />
---response begin---<br />
HTTP/1.1 200 OK<br />
Server: Lotus-Domino<br />
Date: Tue, 28 Aug 2007 22:36:16 GMT<br />
Connection: close<br />
Content-Type: text/html<br />
Content-Length: 14036<br />
Last-Modified: Sun, 01 Jul 2007 21:15:36 GMT<br />
Accept-Ranges: bytes</p>

<p>---response end---<br />
200 OK<br />
Length: 14,036 (14K) [text/html]</p>

<p>0% [                                                                                                                                                              ] 0             --.--K/s </p>

<p>i.e. the response is always stuck on 0%. You never get any data.</p>

<p>A colleague, Dave Whitla, suggested that our default MTU of 1500 bytes could be at issue. Not all networking equipment deals properly with fragments.  See http://en.wikipedia.org/wiki/Maximum_transmission_unit</p>

<p>The default MTU on Mac OS X is 1500. I adjusted the MTU to 1000 bytes and sure enough, the problems were resolved.</p>

<p>On Mac the MTU can be adjusted to 1000 bytes using:</p>

<p>sudo ifconfig en1 mtu 1000</p>

<p>You then to stop and start the interface. You then get:</p>

<p>en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1000<br />
        tunnel inet  --> <br />
        inet6 fe80::216:cbff:feb9:7131%en1 prefixlen 64 scopeid 0x5 <br />
        inet 192.168.0.119 netmask 0xffffff00 broadcast 192.168.0.255<br />
        ether 00:16:cb:b9:71:31 <br />
        media: autoselect status: active<br />
        supported media: autoselect<br />
        vlan: 0 parent interface: <none><br />
        bond interfaces: <none></p>

<p>MTU can also be on the server side. See http://help.expedient.net/broadband/mtu.shtml<br />
</p>]]>

</content>
</entry>
<entry>
<title>Adjusting the networking MTU on Mac OS X</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/09/adjusting_the_n_1.html" />
<modified>2007-09-13T23:16:42Z</modified>
<issued>2007-09-13T23:09:10Z</issued>
<id>tag:gregluck.com,2007:/blog/1.138</id>
<created>2007-09-13T23:09:10Z</created>
<summary type="text/plain">My wife is newly involved with a Arbonne, a network selling cosmetics company. They set up in Australia a few months ago. She has an a website http://arbonnebrisbane.myarbonne.com.au . Anyway the web site did not work from Mac OS X...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Mac OS X</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>My wife is newly involved with a Arbonne, a network selling cosmetics company. They set up in Australia a few months ago. She has an a website http://arbonnebrisbane.myarbonne.com.au . Anyway the web site did not work from Mac OS X or Linux from our home, only Windows (running in VM Ware). The problem was seen in all browsers, curl and wget. Not a problem I have seen before. </p>

<p>The issue, viewed from wget, looks like:</p>

<p>Using wget we get:</p>

<p>http://www.myarbonne.com.au/<br />
           => `index.html.1'<br />
Resolving www.myarbonne.com.au... 208.179.207.104<br />
Caching www.myarbonne.com.au => 208.179.207.104<br />
Connecting to www.myarbonne.com.au|208.179.207.104|:80... connected.<br />
Created socket 4.<br />
Releasing 0x00516290 (new refcount 1).</p>

<p>---request begin---<br />
GET / HTTP/1.0<br />
User-Agent: Wget/1.10.2<br />
Accept: */*<br />
Host: www.myarbonne.com.au<br />
Connection: Keep-Alive</p>

<p>---request end---<br />
HTTP request sent, awaiting response...<br />
---response begin---<br />
HTTP/1.1 200 OK<br />
Server: Lotus-Domino<br />
Date: Tue, 28 Aug 2007 22:36:16 GMT<br />
Connection: close<br />
Content-Type: text/html<br />
Content-Length: 14036<br />
Last-Modified: Sun, 01 Jul 2007 21:15:36 GMT<br />
Accept-Ranges: bytes</p>

<p>---response end---<br />
200 OK<br />
Length: 14,036 (14K) [text/html]</p>

<p>0% [                                                                                                                                                              ] 0             --.--K/s </p>

<p>i.e. the response is always stuck on 0%. You never get any data.</p>

<p>A colleague, Dave Whitla, suggested that our default MTU of 1500 bytes could be at issue. Not all networking equipment deals properly with fragments.  See http://en.wikipedia.org/wiki/Maximum_transmission_unit</p>

<p>The default MTU on Mac OS X is 1500. I adjusted the MTU to 1000 bytes and sure enough, the problems were resolved.</p>

<p>On Mac the MTU can be adjusted to 1000 bytes using:</p>

<p>sudo ifconfig en1 mtu 1000</p>

<p>You then to stop and start the interface. You then get:</p>

<p>en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1000<br />
        tunnel inet  --> <br />
        inet6 fe80::216:cbff:feb9:7131%en1 prefixlen 64 scopeid 0x5 <br />
        inet 192.168.0.119 netmask 0xffffff00 broadcast 192.168.0.255<br />
        ether 00:16:cb:b9:71:31 <br />
        media: autoselect status: active<br />
        supported media: autoselect<br />
        vlan: 0 parent interface: <none><br />
        bond interfaces: <none></p>

<p>MTU can also be on the server side. See http://help.expedient.net/broadband/mtu.shtml<br />
</p>]]>

</content>
</entry>
<entry>
<title>Ehcache-1.4 beta Released</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/08/ehcache14_beta.html" />
<modified>2007-08-27T10:05:34Z</modified>
<issued>2007-08-27T10:03:39Z</issued>
<id>tag:gregluck.com,2007:/blog/1.136</id>
<created>2007-08-27T10:03:39Z</created>
<summary type="text/plain">The beta version of ehcache-1.4 is available on sourceforge and the Maven central repository. This version significantly enrichens the ehcache API and enhances extension of ehcache. The new features are: You can now define CacheLoaders in the ehcache core API....</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Java</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>The beta version of ehcache-1.4 is available on sourceforge and the Maven central repository.</p>

<p>This version significantly enrichens the ehcache API and enhances extension of ehcache. The new features are:</p>

<p>You can now define CacheLoaders in the ehcache core API. They supplement the existing SelfPopulatingCache. They can be configured in ehcache.xml or programmatically. They can be used for cache warming, and simple pull-through caching. See the Cache Loaders chapter in the documentation for more details.</p>

<p>You can now define a CacheExceptionHandler and register it progammatically or in ehcache.xml. The enable an exception handler to be registered with a cache so that it is called on exception rather than the exception being thrown. See the Cache Exception Handler chapter in the documentation for more details.</p>

<p>You can now define CacheExtensions and register them progammatically or in ehcache.xml. A CacheExtension is a generic facility which holds a reference to a cache and is bound to the cache lifecycle, making possible a wide variety of extensions to behaviour. Usage examples are a cache refresh timer or a file monitoring mechanism. See the Cache Extensions chapter in the documentation for more details.</p>

<p>There are 5 minor bug fixes in the release. At the time of release there are no open bugs in ehcache.</p>

<p>See http://ehcache.sourceforge.net/ for more information.</p>]]>

</content>
</entry>
<entry>
<title>Dynamic Proxy Performance</title>
<link rel="alternate" type="text/html" href="http://gregluck.com/blog/archives/2007/08/dynamic_proxy_p.html" />
<modified>2007-09-06T09:26:13Z</modified>
<issued>2007-08-19T08:22:59Z</issued>
<id>tag:gregluck.com,2007:/blog/1.135</id>
<created>2007-08-19T08:22:59Z</created>
<summary type="text/plain">Ehcache 1.4, which is nearing completion, adds some user requested features such as ExceptionHandler(s). These are implemented in ehcache as dynamic proxies. One todo I have had is to investigate the performance degradation from use of same. An article by...</summary>
<author>
<name>gluck</name>

<email>gluck@gregluck.com</email>
</author>
<dc:subject>Java</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://gregluck.com/blog/">
<![CDATA[<p>Ehcache 1.4, which is nearing completion, adds some user requested features such as ExceptionHandler(s). These are implemented in ehcache as dynamic proxies. One todo I have had is to investigate the performance degradation from use of same. An article by Brian Goetz (fellow JSR107 member) on IBM developerworks a few years ago predicted a 2x cost. </p>

<p>I have done some testing using a memory only cache in ehcache and come with a line ball. For ehcache afficianados, the test is in CacheTest.testProportionMemoryAndDiskPerformance. This is a test that protects against regression in ehcache by asserting outside times for variations in memory and disk store sizes. I added a memory only test using the new CacheExceptionHandler dynamic proxy.</p>

<p>It does 5000 puts and gets, sleeps for 500ms to give the hotspot compiler a chance to optimise, and repeats 10 times. Then it does the same for a dynamic proxy.</p>

<p>INFO: Time for MemoryStore: 120<br />
Aug 19, 2007 5:10:52 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 123<br />
Aug 19, 2007 5:10:53 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 63<br />
Aug 19, 2007 5:10:53 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 40<br />
Aug 19, 2007 5:10:54 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 128<br />
Aug 19, 2007 5:10:55 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 30<br />
Aug 19, 2007 5:10:55 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 131<br />
Aug 19, 2007 5:10:56 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 29<br />
Aug 19, 2007 5:10:56 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 35<br />
Aug 19, 2007 5:10:57 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 35<br />
Aug 19, 2007 5:10:57 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for MemoryStore: 130</p>

<p>Mean: 86ms</p>

<p>Aug 19, 2007 5:10:58 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 69<br />
Aug 19, 2007 5:10:59 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 46<br />
Aug 19, 2007 5:10:59 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 91<br />
Aug 19, 2007 5:11:00 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 158<br />
Aug 19, 2007 5:11:00 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 69<br />
Aug 19, 2007 5:11:01 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 51<br />
Aug 19, 2007 5:11:02 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 137<br />
Aug 19, 2007 5:11:02 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 39<br />
Aug 19, 2007 5:11:03 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 45<br />
Aug 19, 2007 5:11:03 PM net.sf.ehcache.CacheTest testProportionMemoryAndDiskPerformance<br />
INFO: Time for exception handling MemoryStore: 38</p>

<p>Mean: 74ms</p>

<p>The result is that I cannot detect a performance differnece. </p>

<p>Maybe the reason is that ehcache just passes the requests on unless they throw an exception. We have</p>

<p>        try {<br />
            invocationResult = method.invoke(ehcache, args);<br />
        } catch (Exception e) {</p>

<p>In Java 5 at least the cost seems to be negligle, even with an in-memory cache.<br />
</p>]]>

</content>
</entry>

</feed>