<?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>Technical Ramblings</title>
	<atom:link href="http://acumiskey.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://acumiskey.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 30 Jan 2010 22:04:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='acumiskey.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Technical Ramblings</title>
		<link>http://acumiskey.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://acumiskey.wordpress.com/osd.xml" title="Technical Ramblings" />
	<atom:link rel='hub' href='http://acumiskey.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Tuning Your Alfresco Development Environment</title>
		<link>http://acumiskey.wordpress.com/2010/01/30/tuning-your-alfresco-development-environment/</link>
		<comments>http://acumiskey.wordpress.com/2010/01/30/tuning-your-alfresco-development-environment/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 22:04:53 +0000</pubDate>
		<dc:creator>acumiskey</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://acumiskey.wordpress.com/?p=3</guid>
		<description><![CDATA[I&#8217;ve noticed when running Alfresco 3.2 in a debugger just how many threads are spawned.  I counted a total of 66 threads, many of which are redundant and never used in a typical development setup.  So I thought I&#8217;d attempt to trim things down a little in an effort to speed up startup time and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acumiskey.wordpress.com&amp;blog=11753077&amp;post=3&amp;subd=acumiskey&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed when running Alfresco 3.2 in a debugger just how many threads are spawned.  I counted a total of 66 threads, many of which are redundant and never used in a typical development setup.  So I thought I&#8217;d attempt to trim things down a little in an effort to speed up startup time and reduce system resource use.  The result is this short guide.</p>
<p>Steps</p>
<p>1. Edit ALFRESCO_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/core-services-context.xml</p>
<p>Find the indexThreadPoolExecutor bean and then change the corePoolSize property value from 10 to 0</p>
<p>2. Edit ALFRESCO_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/fileServers/default/file-servers-context.xml</p>
<p>Find the fileServerConfiguration bean and then add the following property :-</p>
<p>&lt;property name=&#8221;coreServerConfigBean&#8221;&gt;<br />
&lt;bean&gt;<br />
&lt;property name=&#8221;threadPoolInit&#8221;&gt;<br />
&lt;value&gt;4&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;/bean&gt;<br />
&lt;/property&gt;</p>
<p>3. Edit ALFRESCO_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/scheduled-jobs-context.xml</p>
<p>Find the schedulerFactory bean and then add the following property :-</p>
<p>&lt;property name=&#8221;taskExecutor&#8221;&gt;<br />
&lt;bean&gt;<br />
&lt;property name=&#8221;threadCount&#8221;&gt;<br />
&lt;value&gt;1&lt;/value&gt;<br />
&lt;/property&gt;<br />
&lt;/bean&gt;<br />
&lt;/property&gt;</p>
<p>4. Edit ALFRESCO_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/domain/quartz.properties</p>
<p>Comment out the org.quartz.threadPool.threadPriority property setting</p>
<p>h2. Result</p>
<p>Before: Server startup in 90625 ms, 66 threads. 267.2mb<br />
After: Server startup in 87435 ms, 27 threads. 259.1mb</p>
<p>Ok, this is not really a great result in terms of improving startup time or memory consumption&#8230;  but I learnt quite a lot along the way about the Alfresco system, and how closely it is coupled with Spring <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acumiskey.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acumiskey.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acumiskey.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acumiskey.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acumiskey.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acumiskey.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acumiskey.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acumiskey.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acumiskey.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acumiskey.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acumiskey.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acumiskey.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acumiskey.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acumiskey.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acumiskey.wordpress.com&amp;blog=11753077&amp;post=3&amp;subd=acumiskey&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acumiskey.wordpress.com/2010/01/30/tuning-your-alfresco-development-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2607622b5d9a8f7690230fecd8cea024?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acumiskey</media:title>
		</media:content>
	</item>
	</channel>
</rss>
