<?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: Prevent and Recover from Java OutOfMemory Error</title>
	<atom:link href="http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/</link>
	<description>iPhone, Android, mobile, Technology news</description>
	<lastBuildDate>Sat, 21 Jan 2012 04:34:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Taran</title>
		<link>http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/#comment-5564</link>
		<dc:creator>Taran</dc:creator>
		<pubDate>Tue, 13 Oct 2009 20:48:40 +0000</pubDate>
		<guid isPermaLink="false">http://geeknizer.com/blog/?p=2093#comment-5564</guid>
		<description>Modified to make more sense. No GCs called, but current thread shutdowns gracefully, possibly other apps/threads can survive bit longer if one of them finishes or reduces the memory mark.</description>
		<content:encoded><![CDATA[<p>Modified to make more sense. No GCs called, but current thread shutdowns gracefully, possibly other apps/threads can survive bit longer if one of them finishes or reduces the memory mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hazem Saleh</title>
		<link>http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/#comment-5563</link>
		<dc:creator>Hazem Saleh</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://geeknizer.com/blog/?p=2093#comment-5563</guid>
		<description>Never handle OutOfMemoryException with your hand as JVM already does this for you. And if one application has an OutOfMemoryException, this will be resulted from even a bad programming or a bad design.</description>
		<content:encoded><![CDATA[<p>Never handle OutOfMemoryException with your hand as JVM already does this for you. And if one application has an OutOfMemoryException, this will be resulted from even a bad programming or a bad design.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/#comment-5562</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Tue, 13 Oct 2009 17:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://geeknizer.com/blog/?p=2093#comment-5562</guid>
		<description>The definition of an OutOfMemoryError is greater than 98% of the time spent in GC with less than 2% freed memory. I don&#039;t see how calling System.gc() is going to help you in this instance as the system is already spinning it&#039;s wheels trying to free up memory.</description>
		<content:encoded><![CDATA[<p>The definition of an OutOfMemoryError is greater than 98% of the time spent in GC with less than 2% freed memory. I don&#39;t see how calling System.gc() is going to help you in this instance as the system is already spinning it&#39;s wheels trying to free up memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkilgrow</title>
		<link>http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/#comment-5561</link>
		<dc:creator>jkilgrow</dc:creator>
		<pubDate>Tue, 13 Oct 2009 00:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://geeknizer.com/blog/?p=2093#comment-5561</guid>
		<description>I agree with jgulla. I don&#039;t think this will buy you much. Especially if you have a leak. But also because gc() merely suggests a GC to run. Even if your production environment allows the gc() method to run, if you are in a situation where you NEED to do this programmtically, it is probably already to late and your collector is already thrashing because it can&#039;t recover enough memory to get below the threshold.</description>
		<content:encoded><![CDATA[<p>I agree with jgulla. I don&#39;t think this will buy you much. Especially if you have a leak. But also because gc() merely suggests a GC to run. Even if your production environment allows the gc() method to run, if you are in a situation where you NEED to do this programmtically, it is probably already to late and your collector is already thrashing because it can&#39;t recover enough memory to get below the threshold.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier</title>
		<link>http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/#comment-5560</link>
		<dc:creator>Olivier</dc:creator>
		<pubDate>Mon, 12 Oct 2009 18:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://geeknizer.com/blog/?p=2093#comment-5560</guid>
		<description>Do not try to recover from an OutOfMemory, this is a really bad idea.&lt;br&gt;I will cite the excellent tips provided in the book &quot;The Pragmatic Programmer&quot; : &lt;br&gt;&gt; Crash Early&lt;br&gt;&gt; A dead program normally does a lot less damage than a crippled one.&lt;br&gt;&lt;br&gt;Let the system crash and as jgulla said, profile your application and adjust your JVM memory system correctly. This will be a lot better than trying to stay alive in a really bad state where everything can happen and bring your system to its knees.</description>
		<content:encoded><![CDATA[<p>Do not try to recover from an OutOfMemory, this is a really bad idea.<br />I will cite the excellent tips provided in the book &#8220;The Pragmatic Programmer&#8221; : <br />&gt; Crash Early<br />&gt; A dead program normally does a lot less damage than a crippled one.</p>
<p>Let the system crash and as jgulla said, profile your application and adjust your JVM memory system correctly. This will be a lot better than trying to stay alive in a really bad state where everything can happen and bring your system to its knees.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jgulla</title>
		<link>http://geeknizer.com/prevent-and-recover-from-java-outofmemory-error/#comment-5559</link>
		<dc:creator>jgulla</dc:creator>
		<pubDate>Mon, 12 Oct 2009 07:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://geeknizer.com/blog/?p=2093#comment-5559</guid>
		<description>This probably won&#039;t work in a production environment. Many production environments (including the one I work on) explicitly disable System.gc(). In fact, many vendors recommend this (you can really mess up the GC / JVM memory strategy by doing explicit calls to System.gc. Besides, if you have a real memory &quot;leak&quot; (holding on to refs no longer needed, etc.) this won&#039;t help - the GC will never free them.&lt;br&gt;&lt;br&gt;You&#039;re better off analyzing your memory profile with VisualGC or some other tool and a adjusting your JVM memory settings appropriately.</description>
		<content:encoded><![CDATA[<p>This probably won&#39;t work in a production environment. Many production environments (including the one I work on) explicitly disable System.gc(). In fact, many vendors recommend this (you can really mess up the GC / JVM memory strategy by doing explicit calls to System.gc. Besides, if you have a real memory &#8220;leak&#8221; (holding on to refs no longer needed, etc.) this won&#39;t help &#8211; the GC will never free them.</p>
<p>You&#39;re better off analyzing your memory profile with VisualGC or some other tool and a adjusting your JVM memory settings appropriately.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

