<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BDBits Bytes &#187; Uncategorized</title>
	<atom:link href="http://bdbits.wordpress.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://bdbits.wordpress.com</link>
	<description>my blog, my opinions</description>
	<lastBuildDate>Fri, 03 Apr 2009 17:05:17 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='bdbits.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7fb38122311e3610f955dd45c56d7a9a?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>BDBits Bytes &#187; Uncategorized</title>
		<link>http://bdbits.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bdbits.wordpress.com/osd.xml" title="BDBits Bytes" />
		<item>
		<title>Java jvm PermGen errors</title>
		<link>http://bdbits.wordpress.com/2009/04/03/java-jvm-permgen-errors/</link>
		<comments>http://bdbits.wordpress.com/2009/04/03/java-jvm-permgen-errors/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:05:17 +0000</pubDate>
		<dc:creator>bdbits</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bdbits.wordpress.com/?p=115</guid>
		<description><![CDATA[I recently set up a Tomcat 6.x server for our Documentum web apps, which are java-based. Annoyingly, I was regularly getting error messages saying there was insufficient memory and &#8220;PermGen&#8221; space. I won&#8217;t go into great detail about this, but at a high level, a java virtual machine (jvm) has internal memory allocations that are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&blog=2017114&post=115&subd=bdbits&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently set up a Tomcat 6.x server for our Documentum web apps, which are java-based. Annoyingly, I was regularly getting error messages saying there was insufficient memory and &#8220;PermGen&#8221; space. I won&#8217;t go into great detail about this, but at a high level, a java virtual machine (jvm) has internal memory allocations that are periodically garbage-collected, i.e. no-longer-needed allocations are cleaned out and the space freed. There is a lot of debate about why and whose code is at fault, but the fact remains it doesn&#8217;t seem to work very well right now, particularly for <em>PermGen</em> space. Fortunately, after much gleaning and some experimentation, I found some startup parameters that seem to have resolved it for me. YMMV and all that, of course.</p>
<p>In Tomcat on Windows (yeah I know), go to <em>Start &gt; All Programs &gt; Apache Tomcat 6.0 &gt; Configure Tomcat</em> &gt; <em>Java</em> and put these in the <em>Java Options</em> textbox. For any other platform or java server, you probably already know where these go. :)  <em>MaxPermSize </em>may need tweaking depending on the java apps you are running. If you still get errors that indicate you are running out of <em>PermGen</em>, try increasing <em>MaxPermSize</em>, but there is a limit depending on your total memory allocation. I have mine set to 1024M max memory and Tomcat wouldn&#8217;t even start if I set <em>MaxPermSize </em>to large values like 512M. If you need that much PermGen you will need to allocate more total memory as well. <em>MaxPermSize=128M </em>seems to have been enough in my case. You&#8217;ll just have to experiment &#8211; or find a better blog post.</p>
<pre>-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:MaxPermSize=128M</pre>
Posted in Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bdbits.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bdbits.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bdbits.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bdbits.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bdbits.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bdbits.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bdbits.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bdbits.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bdbits.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bdbits.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&blog=2017114&post=115&subd=bdbits&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://bdbits.wordpress.com/2009/04/03/java-jvm-permgen-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77198cdbd92e186193d7d53b4467ee43?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">bdbits</media:title>
		</media:content>
	</item>
	</channel>
</rss>