<?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: Concurrency issues in Hibernate statistics</title>
	<atom:link href="http://tech.puredanger.com/index.php/2009/05/13/hibernate-concurrency-bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/</link>
	<description>Alex Miller&#039;s technical blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:39:50 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: Alex</title>
		<link>http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/comment-page-1/#comment-164684</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 17 May 2009 02:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/#comment-164684</guid>
		<description>@Dimitris:  Ah, fair enough point.  You might only be sampling the values without clearing them.  A gui or whatever is monitoring the values could be diffing the ever increasing values.</description>
		<content:encoded><![CDATA[<p>@Dimitris:  Ah, fair enough point.  You might only be sampling the values without clearing them.  A gui or whatever is monitoring the values could be diffing the ever increasing values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitris</title>
		<link>http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/comment-page-1/#comment-164333</link>
		<dc:creator>Dimitris</dc:creator>
		<pubDate>Fri, 15 May 2009 07:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/#comment-164333</guid>
		<description>(Also, I didn&#039;t mean that they read the values only once per hour, but they would want to reset the statistics at that frequency, but anyway, doesn&#039;t really matter).</description>
		<content:encoded><![CDATA[<p>(Also, I didn&#8217;t mean that they read the values only once per hour, but they would want to reset the statistics at that frequency, but anyway, doesn&#8217;t really matter).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitris</title>
		<link>http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/comment-page-1/#comment-164331</link>
		<dc:creator>Dimitris</dc:creator>
		<pubDate>Fri, 15 May 2009 07:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/#comment-164331</guid>
		<description>Hi again,
I see my post truncated. Its end was &quot;how would you do it better in Java 1.4&quot;</description>
		<content:encoded><![CDATA[<p>Hi again,<br />
I see my post truncated. Its end was &#8220;how would you do it better in Java 1.4&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Ebersole</title>
		<link>http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/comment-page-1/#comment-164203</link>
		<dc:creator>Steve Ebersole</dc:creator>
		<pubDate>Thu, 14 May 2009 13:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/#comment-164203</guid>
		<description>Totally agree with everything you say.  Its really a question of whether we want to spend time/effort &#039;fixing&#039; this since, as you mention, we are stuck supporting JDK 1.4 for a bit longer yet or waiting till we can drop JDK 1.4 support and use its improved concurrency capabilities.  An option here might be use of Doug Lea&#039;s &quot;oswego&quot; concurrency package; there were a few other places where things like better concurrent collections would have been nice-to-have.</description>
		<content:encoded><![CDATA[<p>Totally agree with everything you say.  Its really a question of whether we want to spend time/effort &#8216;fixing&#8217; this since, as you mention, we are stuck supporting JDK 1.4 for a bit longer yet or waiting till we can drop JDK 1.4 support and use its improved concurrency capabilities.  An option here might be use of Doug Lea&#8217;s &#8220;oswego&#8221; concurrency package; there were a few other places where things like better concurrent collections would have been nice-to-have.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/comment-page-1/#comment-164202</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 14 May 2009 13:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2009/05/13/hibernate-concurrency-bugs/#comment-164202</guid>
		<description>@Dimitris: In my experience, people are reading these values a lot more frequently than once an hour.  But in general, yes (3) may be less severe.

In 1.5+, there are a bunch of options.  You could use AtomicLong to safely read/write the stat values - that gives you visiblity and atomic increment. For the maps, a ConcurrentHashMap would probably be a good choice.</description>
		<content:encoded><![CDATA[<p>@Dimitris: In my experience, people are reading these values a lot more frequently than once an hour.  But in general, yes (3) may be less severe.</p>
<p>In 1.5+, there are a bunch of options.  You could use AtomicLong to safely read/write the stat values &#8211; that gives you visiblity and atomic increment. For the maps, a ConcurrentHashMap would probably be a good choice.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

