<?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>ZD&#039;s random thoughts &#187; Performance</title>
	<atom:link href="http://zdinfo.com/category/performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://zdinfo.com</link>
	<description>technology, life, and more</description>
	<lastBuildDate>Wed, 24 Mar 2010 12:56:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>When not to put debug info on your production site</title>
		<link>http://zdinfo.com/2010/02/21/when-not-to-put-debug-info-on-your-production-site/</link>
		<comments>http://zdinfo.com/2010/02/21/when-not-to-put-debug-info-on-your-production-site/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 04:28:21 +0000</pubDate>
		<dc:creator>zd</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Lenovo]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://zdinfo.com/?p=93</guid>
		<description><![CDATA[Title says it all.
http://outlet.lenovo.com/report/?id=-528847430&#38;s=public
SQLSTATE[HY000]: General error: 5 Out of memory (Needed 25165796 bytes)
Trace:
#0 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo-&#62;_execute(Array)
#1 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(457): Zend_Db_Statement-&#62;execute(Array)
#2 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract-&#62;query('SELECT COUNT(DI...', Array)
#3 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(281): Zend_Db_Adapter_Pdo_Abstract-&#62;query('SELECT COUNT(DI...', Array)
#4 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(761): Varien_Db_Adapter_Pdo_Mysql-&#62;query(Object(Varien_Db_Select), Array)
#5 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection/Db.php(162): Zend_Db_Adapter_Abstract-&#62;fetchOne(Object(Varien_Db_Select), Array)
#6 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection.php(188): Varien_Data_Collection_Db-&#62;getSize()
#7 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection.php(174): Varien_Data_Collection-&#62;getLastPageNumber()
#8 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(928): Varien_Data_Collection-&#62;getCurPage()
#9 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(784): Mage_Eav_Model_Entity_Collection_Abstract-&#62;_loadEntities(false, false)
#10 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/Block/Product/List.php(167): Mage_Eav_Model_Entity_Collection_Abstract-&#62;load()
#11 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(642): Mage_Catalog_Block_Product_List-&#62;_beforeToHtml()
#12 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract-&#62;toHtml()
#13 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract-&#62;_getChildHtml('product_list', true)
#14 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/Block/Category/View.php(81): Mage_Core_Block_Abstract-&#62;getChildHtml('product_list')
#15 /chroot/home/lenovoco/lenovo.com/html/app/design/frontend/default/outlet/template/catalog/category/view.phtml(75): Mage_Catalog_Block_Category_View-&#62;getProductListHtml()
#16 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/le...')
#17 [...]]]></description>
			<content:encoded><![CDATA[<p>Title says it all.</p>
<p><a href="http://outlet.lenovo.com/report/?id=-528847430&amp;s=public">http://outlet.lenovo.com/report/?id=-528847430&amp;s=public</a></p>
<pre>SQLSTATE[HY000]: General error: 5 Out of memory (Needed 25165796 bytes)
<strong>Trace:</strong>
#0 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo-&gt;_execute(Array)
#1 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(457): Zend_Db_Statement-&gt;execute(Array)
#2 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract-&gt;query('SELECT COUNT(DI...', Array)
#3 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(281): Zend_Db_Adapter_Pdo_Abstract-&gt;query('SELECT COUNT(DI...', Array)
#4 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(761): Varien_Db_Adapter_Pdo_Mysql-&gt;query(Object(Varien_Db_Select), Array)
#5 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection/Db.php(162): Zend_Db_Adapter_Abstract-&gt;fetchOne(Object(Varien_Db_Select), Array)
#6 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection.php(188): Varien_Data_Collection_Db-&gt;getSize()
#7 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection.php(174): Varien_Data_Collection-&gt;getLastPageNumber()
#8 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(928): Varien_Data_Collection-&gt;getCurPage()
#9 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(784): Mage_Eav_Model_Entity_Collection_Abstract-&gt;_loadEntities(false, false)
#10 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/Block/Product/List.php(167): Mage_Eav_Model_Entity_Collection_Abstract-&gt;load()
#11 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(642): Mage_Catalog_Block_Product_List-&gt;_beforeToHtml()
#12 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract-&gt;toHtml()
#13 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract-&gt;_getChildHtml('product_list', true)
#14 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/Block/Category/View.php(81): Mage_Core_Block_Abstract-&gt;getChildHtml('product_list')
#15 /chroot/home/lenovoco/lenovo.com/html/app/design/frontend/default/outlet/template/catalog/category/view.phtml(75): Mage_Catalog_Block_Category_View-&gt;getProductListHtml()
#16 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/le...')
#17 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template-&gt;fetchView('frontend/defaul...')
#18 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template-&gt;renderView()
#19 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template-&gt;_toHtml()
#20 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract-&gt;toHtml()
#21 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List-&gt;_toHtml()
#22 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract-&gt;toHtml()
#23 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract-&gt;_getChildHtml('content', true)
#24 /chroot/home/lenovoco/lenovo.com/html/app/design/frontend/default/outlet/template/page/3columns.phtml(74): Mage_Core_Block_Abstract-&gt;getChildHtml('content')
#25 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/le...')
#26 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template-&gt;fetchView('frontend/defaul...')
#27 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template-&gt;renderView()
#28 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template-&gt;_toHtml()
#29 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract-&gt;toHtml()
#30 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php(347): Mage_Core_Model_Layout-&gt;getOutput()
#31 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/controllers/CategoryController.php(115): Mage_Core_Controller_Varien_Action-&gt;renderLayout()
#32 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Catalog_CategoryController-&gt;viewAction()
#33 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action-&gt;dispatch('view')
#34 /chroot/home/lenovoco/lenovo.com/html/app/code/community/ArtsOnIT/OfflineMaintenance/Controller/Router/Standard.php(46): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
#35 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Front.php(158): ArtsOnIT_OfflineMaintenance_Controller_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
#36 /chroot/home/lenovoco/lenovo.com/html/app/Mage.php(459): Mage_Core_Controller_Varien_Front-&gt;dispatch()
#37 /chroot/home/lenovoco/lenovo.com/html/index.php(65): Mage::run()
#38 {main}</pre>
]]></content:encoded>
			<wfw:commentRss>http://zdinfo.com/2010/02/21/when-not-to-put-debug-info-on-your-production-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon&#8217;s MySQL and more EC instances</title>
		<link>http://zdinfo.com/2009/10/27/amazons-mysql-and-more-ec-instances/</link>
		<comments>http://zdinfo.com/2009/10/27/amazons-mysql-and-more-ec-instances/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 09:10:01 +0000</pubDate>
		<dc:creator>zd</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://zdinfo.com/?p=67</guid>
		<description><![CDATA[One of the major offerings from Amazon Web Service (AWS) is Simple DB, similar to Google&#8217;s bigtable, which is not a relational database. Some people have managed to migrated their applications to SDB in order to move their application to the Amazon cloud. Many other people who could not/would not convert their relational DB back-end [...]]]></description>
			<content:encoded><![CDATA[<p>One of the major offerings from Amazon Web Service (AWS) is Simple DB, similar to Google&#8217;s bigtable, which is not a relational database. Some people have managed to migrated their applications to SDB in order to move their application to the Amazon cloud. Many other people who could not/would not convert their relational DB back-end to SDB installed MySQL on the EC2 instances instead, then again, they started to worry about how to persist the data directory on Amazon EBS. It was some additional pain indeed.</p>
<p>Nice thing is that Amazon today announced Amazon Relational DB Service(rdf), based on MySQL. Now people do not have to google the &#8220;best practice&#8221; to persist on EBS without compromising performance. Hopefully this will drive more people to Amazon&#8217;s AWS.</p>
]]></content:encoded>
			<wfw:commentRss>http://zdinfo.com/2009/10/27/amazons-mysql-and-more-ec-instances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chrome 4.0.222.5 for Mac released</title>
		<link>http://zdinfo.com/2009/10/16/chrome-4-0-222-5-for-mac-released/</link>
		<comments>http://zdinfo.com/2009/10/16/chrome-4-0-222-5-for-mac-released/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:08:54 +0000</pubDate>
		<dc:creator>zd</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://zdinfo.com/?p=64</guid>
		<description><![CDATA[If you are on the dev channel, your Chrome will be upgraded automatically.
There are some new features as well as some bugfixes. New features include enabling &#8220;Edit Search Engine&#8221; menu item,  and &#8220;default browser&#8221;.
Performance-wise, it seems this version has a smaller toll on the CPU compared to previous ones.
]]></description>
			<content:encoded><![CDATA[<p>If you are on the dev channel, your Chrome will be upgraded automatically.</p>
<p>There are some new features as well as some bugfixes. New features include enabling &#8220;Edit Search Engine&#8221; menu item,  and &#8220;default browser&#8221;.</p>
<p>Performance-wise, it seems this version has a smaller toll on the CPU compared to previous ones.</p>
]]></content:encoded>
			<wfw:commentRss>http://zdinfo.com/2009/10/16/chrome-4-0-222-5-for-mac-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 Visualization on Mac OS X</title>
		<link>http://zdinfo.com/2009/07/03/windows-7-visualization-on-mac-os-x/</link>
		<comments>http://zdinfo.com/2009/07/03/windows-7-visualization-on-mac-os-x/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 05:05:13 +0000</pubDate>
		<dc:creator>zd</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmware fusion]]></category>

		<guid isPermaLink="false">http://zdinfo.com/?p=57</guid>
		<description><![CDATA[



Image via Wikipedia



Since I got my first Macbook Pro one week ago, the overall experience has been pretty positive. One of most impressive feature I like is quick switch from/to sleep mode. In Windows (and Linux) it usually takes more than 10 seconds but it takes than 1 second on Mac OS. When I touch [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="display: block; width: 162px; margin: 1em;">
<div>
<dl class="wp-caption alignright" style="width: 162px;">
<dt class="wp-caption-dt"><a href="http://en.wikipedia.org/wiki/Image:Apple-logo.png"><img title="Apple Inc." src="http://upload.wikimedia.org/wikipedia/en/a/ab/Apple-logo.png" alt="Apple Inc." width="152" height="186" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://en.wikipedia.org/wiki/Image:Apple-logo.png">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>Since I got my first Macbook Pro one week ago, the overall experience has been pretty positive. One of most impressive feature I like is quick switch from/to sleep mode. In Windows (and Linux) it usually takes more than 10 seconds but it takes than 1 second on Mac OS. When I touch the touchpad, the computer wakes up from sleep and becomes up-and-running almost instantly.</p>
<p>Apple computers are great. But sometimes you just could not find your favorite app on a Mac, MS Visio being one of them. When you do not want to switch to a different machine, you have options &#8211; visualization. There are several different products on the market &#8211; VMWare Fusion 2 and VirtualBox 3 being the most popular.</p>
<p>Both of them have some nice feature sets. I like &#8220;Unity&#8221; mode in Fusion (the counterpart in VirtualBox is called &#8220;seamless mode&#8221;). VMWare has more interesting integrations, such as mirroring Mac home directory, iSight under Windows, to name a few. VirtualBox, on the other hand, is more configurable via the command line.</p>
<p>However, VMWare Fusion does not support Windows 7 yet, at least officially. The official Fusion blog suggested to use &#8220;Windows Server 2008&#8243; as the profile when installing Windows 7 beta and RC. As a result, the above nice features are not available &#8211; home directory mirroring and iSight under Windows. In this case, <a href="https://www.getdropbox.com/referrals/NTE0MTU3NjE5">Dropbox</a> will be helpful if you want to share documents between these OSes.</p>
<p>Performance-wise, VirtualBox seems to be the winner. Windows applications in VirtualBox (MS Office 2007 and Visio) are more responsive and the host OS is not slowed down by any means. Windows apps in Fusion feel a little bit sluggish, given the same configuration (1G of physical mem). Please note, these are not really scientific performance analysis &#8211; they are totally my subjective feeling of &#8220;responsiveness&#8221;.</p>
<p>In summary, Fusion 2 and VirtualBox 3 are both great products. I am hoping when Windows 7 is officially released, VMWare Fusion will have more integration with it. Oh BTW, Fusion costs $70 and Virtualbox is free for personal use.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=937c06a6-d24e-4742-8e86-382636f6feeb" alt="" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://zdinfo.com/2009/07/03/windows-7-visualization-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating to Phusion Passenger</title>
		<link>http://zdinfo.com/2009/01/29/migrating-to-phusion-passenger/</link>
		<comments>http://zdinfo.com/2009/01/29/migrating-to-phusion-passenger/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 17:10:46 +0000</pubDate>
		<dc:creator>zd</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[slicehost]]></category>

		<guid isPermaLink="false">http://zdinfo.com/?p=20</guid>
		<description><![CDATA[I have been using nginx and mongrel for my rails application on my 256 slice. It has been nice, except administration is becoming a big overhead when considering all the stuff I had to deal with fastcgi scripts for my other PHP applications/domains. 
I liked nginx because of its small footprint, and high performance. However when the [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using nginx and mongrel for my rails application on my <a href="http://www.slicehost.com/">256 slice</a>. It has been nice, except administration is becoming a big overhead when considering all the stuff I had to deal with fastcgi scripts for my other PHP applications/domains. </p>
<p>I liked nginx because of its small footprint, and high performance. However when the administrative cost is getting higher, I start to look for alternatives.</p>
<p>Passenger is nice because of its low administrative overhead. But it does not come cheap &#8211; it is a module for apache, meaning I will need to run Apache as my web server. Considering the fact the slice has only 256M memory, it is a hard decision to get rid of nginx and bring back Apache.</p>
<p>Things I had to work on is the MPM portion of Apache configuration. My stock Apache from CentOS uses prefork MPM as the default MPM. When using the default configuration, Apache started too many spare servers which uses substantial amount of memory. As a result, the system was put into swap whenever there is a HTTP request. After lowering MaxSpareServers to 6, Apache and Passenger are doing fine. Swap is never used again and the applications are more responsive. </p>
<p>Now I am happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://zdinfo.com/2009/01/29/migrating-to-phusion-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
