<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Of perf degradation with try-finallies and poor VM option docs &#8230;</title>
	<atom:link href="http://www.0xcafefeed.com/2004/05/of-perf-degradation-with-try-finallies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.0xcafefeed.com/2004/05/of-perf-degradation-with-try-finallies/</link>
	<description>Thoughts on Java™, Java EE™ and web application development</description>
	<lastBuildDate>Fri, 30 Apr 2010 07:48:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.0xcafefeed.com/2004/05/of-perf-degradation-with-try-finallies/comment-page-1/#comment-35</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 10 Feb 2006 20:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.0xCAFEFEED.com/?p=4#comment-35</guid>
		<description>The graph is rubbish, although it shows that too many try/final blocks are very bad for performance the test doe snot take warmup-time into account, which can be clearly seen by the strange result produced by hotpot-server.</description>
		<content:encoded><![CDATA[<p>The graph is rubbish, although it shows that too many try/final blocks are very bad for performance the test doe snot take warmup-time into account, which can be clearly seen by the strange result produced by hotpot-server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajiv</title>
		<link>http://www.0xcafefeed.com/2004/05/of-perf-degradation-with-try-finallies/comment-page-1/#comment-18</link>
		<dc:creator>rajiv</dc:creator>
		<pubDate>Thu, 05 Aug 2004 02:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.0xCAFEFEED.com/?p=4#comment-18</guid>
		<description>The websphere/weblogic problem sounds very similar. However, it is interesting to know that you noticed the problem in Websphere. I thought Websphere uses IBM JDK and we had noticed that IBM JDK handles lot of try-finally blocks much better! 

I guess that is because, though IBM JDK handles too many blocks better than Sun JDK ... it is still not as good as not having so many try-finally blocks. [Which is true if you look at the response time chart].

The diff between try-finally and a regular block is probably because of the ``lookup table trashing&#039;&#039; you are mentioning. But in case of Sun JDK, most of the time was spent doing GC. Atleast the verbose:gc showed that!

I guess we will get to know more when the Sun Engineers close the bug [hopefully they will post some details].</description>
		<content:encoded><![CDATA[<p>The websphere/weblogic problem sounds very similar. However, it is interesting to know that you noticed the problem in Websphere. I thought Websphere uses IBM JDK and we had noticed that IBM JDK handles lot of try-finally blocks much better! </p>
<p>I guess that is because, though IBM JDK handles too many blocks better than Sun JDK &#8230; it is still not as good as not having so many try-finally blocks. [Which is true if you look at the response time chart].</p>
<p>The diff between try-finally and a regular block is probably because of the &#8220;lookup table trashing&#8221; you are mentioning. But in case of Sun JDK, most of the time was spent doing GC. Atleast the verbose:gc showed that!</p>
<p>I guess we will get to know more when the Sun Engineers close the bug [hopefully they will post some details].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.0xcafefeed.com/2004/05/of-perf-degradation-with-try-finallies/comment-page-1/#comment-17</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 04 Aug 2004 20:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.0xCAFEFEED.com/?p=4#comment-17</guid>
		<description>We had a very similar issue a while ago.

We had an application that worked fine on WebLogic. When we tried it with Websphere we found it was very slow indeed.

After much investigation we noticed it was because of a difference in the way WebSphere handled custom tag invocations in the generated servlet code (generated from a JSP).

WebLogic put all the custom tag invocations inside a single try/catch. Websphere instead put all the invocations in their own try/catch. I cannot remember the exact details but within a single method, there is a lookup table that is used to find some offset. The structure to hold these offsets can only hold something like 64 at a time. This is normally absolutely fine for a single method but in a servlet with the custom tags, Websphere was going above this limit.

The result was that it thrashed trying to move these offsets into the structure (you have to look at the VM code to see the precise reason for the thrashing and I cannot quite remember any longer).

Could this be what you are seeing?</description>
		<content:encoded><![CDATA[<p>We had a very similar issue a while ago.</p>
<p>We had an application that worked fine on WebLogic. When we tried it with Websphere we found it was very slow indeed.</p>
<p>After much investigation we noticed it was because of a difference in the way WebSphere handled custom tag invocations in the generated servlet code (generated from a JSP).</p>
<p>WebLogic put all the custom tag invocations inside a single try/catch. Websphere instead put all the invocations in their own try/catch. I cannot remember the exact details but within a single method, there is a lookup table that is used to find some offset. The structure to hold these offsets can only hold something like 64 at a time. This is normally absolutely fine for a single method but in a servlet with the custom tags, Websphere was going above this limit.</p>
<p>The result was that it thrashed trying to move these offsets into the structure (you have to look at the VM code to see the precise reason for the thrashing and I cannot quite remember any longer).</p>
<p>Could this be what you are seeing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moazam</title>
		<link>http://www.0xcafefeed.com/2004/05/of-perf-degradation-with-try-finallies/comment-page-1/#comment-6</link>
		<dc:creator>Moazam</dc:creator>
		<pubDate>Thu, 17 Jun 2004 20:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.0xCAFEFEED.com/?p=4#comment-6</guid>
		<description>On the topic of PrintCompilation, I&#039;ve tried to answer some of your questions &lt;a HREF=&quot;http://blogs.sun.com/moazam/entry/the_printcompilation_flag_and_how&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.
-Moazam</description>
		<content:encoded><![CDATA[<p>On the topic of PrintCompilation, I&#8217;ve tried to answer some of your questions <a HREF="http://blogs.sun.com/moazam/entry/the_printcompilation_flag_and_how" rel="nofollow">here</a>.<br />
-Moazam</p>
]]></content:encoded>
	</item>
</channel>
</rss>
