<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Dan Walmsley &#187; java wicket apache permgen gc programming</title>
	<atom:link href="http://www.danwalmsley.com/tag/java-wicket-apache-permgen-gc-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danwalmsley.com</link>
	<description>Coding so you don&#039;t have to</description>
	<lastBuildDate>Mon, 02 Jan 2012 12:19:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<copyright>Copyright &#xA9; Dan Walmsley 2011 </copyright>
	<managingEditor>dan@danwalmsley.com (Dan Walmsley)</managingEditor>
	<webMaster>dan@danwalmsley.com (Dan Walmsley)</webMaster>
	<image>
		<url>http://www.danwalmsley.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Dan Walmsley</title>
		<link>http://www.danwalmsley.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Putting the nerd in comnerdedy</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>Dan Walmsley</itunes:author>
	<itunes:owner>
		<itunes:name>Dan Walmsley</itunes:name>
		<itunes:email>dan@danwalmsley.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.danwalmsley.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>End the Wicket PermGen issue</title>
		<link>http://www.danwalmsley.com/2007/12/11/end-the-wicket-permgen-issue/</link>
		<comments>http://www.danwalmsley.com/2007/12/11/end-the-wicket-permgen-issue/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 01:18:58 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java wicket apache permgen gc programming]]></category>

		<guid isPermaLink="false">http://www.danwalmsley.com/2007/12/11/end-the-wicket-permgen-issue/</guid>
		<description><![CDATA[Update: This doesn&#8217;t seem to have completely fixed the problem, although perhaps I&#8217;m reloading the context to often for the garbage collector to keep up. I&#8217;ll keep you posted. Anyhoo, &#8230; <a class="more" href="http://www.danwalmsley.com/2007/12/11/end-the-wicket-permgen-issue/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: This doesn&#8217;t seem to have completely fixed the problem, although perhaps I&#8217;m reloading the context to often for the garbage collector to keep up. I&#8217;ll keep you posted. Anyhoo, if you read this and try it out, please let me know if it works for you.</p>
<hr />
<p>Anyone who develops Wicket applications and doesn&#8217;t have a bajillion gigabytes of RAM (and java command line options to match) eventually runs into the &#8220;Out of PermGen Space&#8221; issue. This happens because, by default, the JVM doesn&#8217;t reclaim this kind of memory.</p>
<p>For those of us who value the ability to hot-redeploy a context without bringing down our entire container (Geronimo, anyone?), the following JVM command-line options are invaluable:</p>
<p>-XX:MaxPermSize=256m \<br />
-XX:+UseConcMarkSweepGC \<br />
-XX:+CMSPermGenSweepingEnabled \<br />
-XX:+CMSClassUnloadingEnabled</p>
<p>Note that not all of them are necessary, but if you want to reclaim PermGen space you must have the last two at least.</p>
<p>I hope this helps someone else out there, this was caving my head in for a while before I realised the fix was so simple.</p>
<p>On another note, I have now read this <a href="http://technically.us/code/x/to-jettison-geronimo">Coderspiel article</a> and am a convert to the world of individual Jetty containers running on their own VM. Memory&#8217;s cheap, right?</p>
<p>And, for my own 2c, Java frameworks are now so abstracted and separable that it&#8217;s possible to achieve 90% of what a full J2EE stack gives you just by cherry-picking a few bits and pieces (say, Hibernate + Wicket + Jetty). That gives you a much leaner, meaner stack and you can tune the Heck out of it.</p>
<p>Add Maven2 to the picture and you&#8217;re in pluggable, extensible, fire-and-forget heaven.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danwalmsley.com/2007/12/11/end-the-wicket-permgen-issue/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

