<?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>Chris Giametta &#187; Tomcat</title>
	<atom:link href="http://www.appfoundation.com/blogs/giametta/tag/tomcat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.appfoundation.com/blogs/giametta</link>
	<description>Rich Internet Apps</description>
	<lastBuildDate>Wed, 19 Oct 2011 22:22:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Tomcat 5 Tip:  Multiple Flex 2 Projects</title>
		<link>http://www.appfoundation.com/blogs/giametta/2007/06/12/tomcat-5-tip-multiple-flex-2-projects/</link>
		<comments>http://www.appfoundation.com/blogs/giametta/2007/06/12/tomcat-5-tip-multiple-flex-2-projects/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 15:28:47 +0000</pubDate>
		<dc:creator>Chris Giametta</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.appfoundation.com/blogs/giametta/2007/06/12/tomcat-5-tip-multiple-flex-2-projects/</guid>
		<description><![CDATA[I usually have many Flex projects deployed on my Tomcat server at any given time. Usually 5-10 will be running. When I execute 3 of these larger Flex applications I use to get memory errors. I have found a couple Java Options that have helped with the server not running ...]]></description>
			<content:encoded><![CDATA[<p>I usually have many Flex projects deployed on my Tomcat server at any given time. Usually 5-10 will be running. When I execute 3 of these larger Flex applications I use to get memory errors. I have found a couple Java Options that have helped with the server not running out of memory.</p>
<p>The first Java Option parameters to set are -Xms (minimum heap size) and -Xmx (maximum heap size). I usually start with a lower -Xms number so the heap can build up to the max -Xmx size if needed. This way I do not partition a portion of memory that may not be used. The setting I use on development and production servers is:</p>
<p><strong> -Xms 256m -Xmx 1024m</strong></p>
<p>The second Java Option to look at is the MaxPermSize. The permanent generation is used to hold reflective data of the VM itself such as class objects and method objects. PermSize is an addition to the -Xmx value. I have set the following MaxPermSize in development and production:</p>
<p><strong>-XX:MaxPermSize=128m</strong></p>
<p>You can set these parameters in Tomcat using the Configure Tomcat application on the Java VM tab.</p>
<p>Be sure you have enough memory on the web server you are allocating memory for. The Windows servers I am referring to have 4 gigs of RAM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.appfoundation.com/blogs/giametta/2007/06/12/tomcat-5-tip-multiple-flex-2-projects/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

