<?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/"
	>

<channel>
	<title>Shadow &#38; Honnix &#187; Memory Leak</title>
	<atom:link href="http://honnix.com/blog/archives/tag/memory-leak/feed" rel="self" type="application/rss+xml" />
	<link>http://honnix.com/blog</link>
	<description>Two Months</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:09:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Java HotSpot JVM Memory Leak</title>
		<link>http://honnix.com/blog/archives/547</link>
		<comments>http://honnix.com/blog/archives/547#comments</comments>
		<pubDate>Thu, 01 Apr 2010 06:54:08 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[AttachCurrentThread]]></category>
		<category><![CDATA[DetachCurrentThread]]></category>
		<category><![CDATA[HotSpot]]></category>
		<category><![CDATA[JVM]]></category>
		<category><![CDATA[Memory Leak]]></category>
		<category><![CDATA[ParkEvent]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=547</guid>
		<description><![CDATA[频繁地调用AttachCurrentThread和DetachCurrentThread，在并发的情况下会有比较严重的Memory Leak，在一个CPU的机器上几率很小，但是多个或者多核的机器上很容易跑出来。 问题出在ParkEvent链表上（其实有问题的还有Park链表），对它的读写并没有全局加锁。具体可以参考源码：thread.cpp。 解决方法也很简单，调用者自己加把锁就行了。]]></description>
			<content:encoded><![CDATA[<p>频繁地调用AttachCurrentThread和DetachCurrentThread，在并发的情况下会有比较严重的Memory Leak，在一个CPU的机器上几率很小，但是多个或者多核的机器上很容易跑出来。</p>
<p>问题出在ParkEvent链表上（其实有问题的还有Park链表），对它的读写并没有全局加锁。具体可以参考源码：thread.cpp。</p>
<p>解决方法也很简单，调用者自己加把锁就行了。</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/547/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>有关J2SE培训的一些想法</title>
		<link>http://honnix.com/blog/archives/27</link>
		<comments>http://honnix.com/blog/archives/27#comments</comments>
		<pubDate>Wed, 28 Nov 2007 13:38:57 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Garbage Collection]]></category>
		<category><![CDATA[Memory Leak]]></category>

		<guid isPermaLink="false">http://honnix.oicp.net:8080/blog/?p=27</guid>
		<description><![CDATA[如果可以监控某些对象是否在堆里存得太久而没有使用的话，是不是可以找出一些潜在的内存泄露呢？]]></description>
			<content:encoded><![CDATA[<p>如果可以监控某些对象是否在堆里存得太久而没有使用的话，是不是可以找出一些潜在的内存泄露呢？</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/27/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
