<?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>emphess .NET &#187; Memory</title>
	<atom:link href="http://www.emphess.net/tag/memory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emphess.net</link>
	<description>Christoph Menge&#039;s Blog</description>
	<lastBuildDate>Tue, 15 Jun 2010 00:50:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vista Annoyance &#8211; Close programs to prevent information loss</title>
		<link>http://www.emphess.net/2008/03/27/vista-annoyance-close-programs-to-prevent-information-loss/</link>
		<comments>http://www.emphess.net/2008/03/27/vista-annoyance-close-programs-to-prevent-information-loss/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 11:10:34 +0000</pubDate>
		<dc:creator>Christoph Menge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.emphess.net/2008/03/27/vista-annoyance-close-programs-to-prevent-information-loss/</guid>
		<description><![CDATA[During the last days, I stumbled across a very annoying feature of Vista very often: The resource exhaustion manager. It tells me to close Visual Studio and the Desktop Window Manager. OK, shall I close the lid of the computer and go to sleep, too?

However, the situation gets worse when I opened mspaint and took [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Memory Consumption" href="http://www.emphess.net/wp-content/uploads/2008/03/memory.png"></a>During the last days, I stumbled across a very annoying feature of Vista very often: The resource exhaustion manager. It tells me to close Visual Studio and the Desktop Window Manager. OK, shall I close the lid of the computer and go to sleep, too?</p>
<p><a title="Annoying Feature" href="http://www.emphess.net/wp-content/uploads/2008/03/annoyance.png"><img src="http://www.emphess.net/wp-content/uploads/2008/03/annoyance.png" alt="Annoying Feature" width="500" /></a></p>
<p>However, the situation gets worse when I opened mspaint and took the screenshot! Now, a low memory warning popped up. The bad thing is: There are still 1777 MB which are used for caching, according to the Task Manager! On the other hand, it reports a page file usage of 2851 / 2939 MB, and shows a graph with 2.36 of 3.00 GB Physical RAM usage &#8211; rather strange?!</p>
<p><strong>Update:</strong> This post is now almost two years old, but it&#8217;s ranked pretty high in the search engines so I felt it was worth an update. Bottom line: don&#8217;t disable virtual memory. If you didn&#8217;t do so, it might have been disabled by a third party software or by accident. To re-enable, go to Control Panel -> System -> Advanced System Settings -> Advanced -> Virtual Memory. You might have to delete the existing file, <code>pagefile.sys</code>.</p>
<p>Windows is pretty smart when it comes to using resources effectively, but there is quite a bit of dark magic involved. The swap file plays an important role. <strong>If you really know what you&#8217;re doing</strong>, however, you can <a href="http://social.technet.microsoft.com/Forums/en-US/itprovistasetup/thread/08ecb6b8-a5b6-445d-a71e-65eafa9692e4">disable the warning</a>.</p>
<p>In another thread (thanks Arthur), users <a href="http://devarthur.blogspot.com/2008/07/vista-page-file-in-netherworld.html">report issues when using TrueCrypt</a>, so TrueCrypt users might want to head over to Arthur&#8217;s. I haven&#8217;t checked out <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e24ade0a-5efe-43c8-b9c3-5d0ecb2f39af&#038;displaylang=en">Microsoft Dynamic Cache Service</a>, but I haven&#8217;t really felt the need. <strong>End Update <img src='http://www.emphess.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </strong></p>
<p>I see the point in caching frequently used files in the RAM, but an easy way to control this caching behavior would be nice. Due to the fact that I have installed 1GB of Intel Turbo Memory anyways, caching should have a very low priority in my case, I think.</p>
<p>Worst of all, I kinda saw it coming: I acquired a habit of ultra-multi-tasking when using an XP machine with 3GB of RAM &#8230; that was almost three years ago, and now that programs have a considerably larger memory consumption, I need more RAM &#8211; which is not possible unless you switch to 64 bit, which is fraught with its own perils, especially when it comes to laptops.</p>
<p>NOTE: I have virtual memory disabled completely.</p>
<p><a title="Memory Consumption" href="http://www.emphess.net/wp-content/uploads/2008/03/memory.png"><img src="http://www.emphess.net/wp-content/uploads/2008/03/memory.png" alt="Memory Consumption" width="500" /></a></p>
<div style="float: right;"><p align="right"><a rel="nofollow" class="tt" href="http://twitter.com/home/?status=Vista+Annoyance+%E2%80%93+Close+programs+to+prevent+information+loss+http://bit.ly/bC1Jhp" title="Post to Twitter"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-twitter2.png" alt="Post to Twitter" /></a> <a rel="nofollow" class="tt" href="http://delicious.com/post?url=http://www.emphess.net/2008/03/27/vista-annoyance-close-programs-to-prevent-information-loss/&amp;title=Vista+Annoyance+%E2%80%93+Close+programs+to+prevent+information+loss" title="Post to Delicious"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="Post to Delicious" /></a> <a rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.emphess.net/2008/03/27/vista-annoyance-close-programs-to-prevent-information-loss/&amp;title=Vista+Annoyance+%E2%80%93+Close+programs+to+prevent+information+loss" title="Post to Digg"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="Post to Digg" /></a> <a rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.emphess.net/2008/03/27/vista-annoyance-close-programs-to-prevent-information-loss/&amp;t=Vista+Annoyance+%E2%80%93+Close+programs+to+prevent+information+loss" title="Post to Facebook"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.emphess.net/2008/03/27/vista-annoyance-close-programs-to-prevent-information-loss/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Configuring Oracle 10g XE for Development</title>
		<link>http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/</link>
		<comments>http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 02:08:57 +0000</pubDate>
		<dc:creator>Christoph Menge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OracleXE]]></category>
		<category><![CDATA[RAM]]></category>

		<guid isPermaLink="false">http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/</guid>
		<description><![CDATA[When I first installed Oracle XE, I was quite impressed how much of the maximum amount of 1GB RAM it uses per default: In my case, about 880MB. I din&#8217;t really care, because my machine has 3GB RAM, and my XP with some old software did not use up too much&#8230;
However, having switched to Windows [...]]]></description>
			<content:encoded><![CDATA[<p>When I first installed Oracle XE, I was quite impressed how much of the maximum amount of 1GB RAM it uses per default: In my case, about 880MB. I din&#8217;t really care, because my machine has 3GB RAM, and my XP with some old software did not use up too much&#8230;</p>
<p>However, having switched to Windows Vista and brand-new versions of all the tools one needs, I have actually hit the limit of my machine - a small window popped up, suggesting to kill both instances of Visual Studio so I would regain free RAM&#8230; For a developer system, it is obviously a good idea to trim the database system&#8217;s size rather than not using the IDE&#8230;</p>
<p>So, even though most people would like their XE Oracles to consume <em>more</em> RAM:</p>
<p>How to make Oracle&#8217;s memory footprint smaller:<br />
1. Start Oracle with its default configuration. You can type <code>net start OracleServiceXE</code> on the (administrator-) console.<br />
2. Find &#8216;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\config\scripts\init.ora&#8217;<br />
Open it and search for <code>sga_target=768M</code>. Replace this with some reasonable value for your machine. You cannot, however, set this value arbitrarily small or Oracle will not work. I used <code>140M</code>.<br />
Also search for <code>pga_aggregate_target=140M</code> and set it to, say, <code>40M</code>.<br />
Save the file.<br />
3. Log into SQLplus. In command window, type</p>
<blockquote><p>sqlplus system/systempass<br />
SQL&gt; CONNECT / AS SYSDBA<br />
Connected.<br />
SQL&gt; create spfile=&#8217;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\dbs/spfilexe_small.ora&#8217;<br />
FROM pfile=&#8217;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\config\scripts\init.ora&#8217;<br />
File created.<br />
SQL&gt;&gt;exit</p></blockquote>
<p>4. Stop Oracle: <code>C:\&gt; net stop OracleServiceXE</code><br />
5. Back up &#8216;C:\YourOracleDirectory\app\oracle\product\10.2.0\server\dbs/spfilexe.ora&#8217; and replace it with our newly-created spfile.<br />
6. Start Oracle again: <code>C:\&gt; net start OracleServiceXE</code></p>
<p>Now, oracle should consume merely about 180MB RAM.</p>
<p>You can also edit the spfile with a hex editor if you are brave enough&#8230; But you have to work very carefully then.</p>
<div style="float: right;"><p align="right"><a rel="nofollow" class="tt" href="http://twitter.com/home/?status=Configuring+Oracle+10g+XE+for+Development+http://bit.ly/aEbEgd" title="Post to Twitter"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-twitter2.png" alt="Post to Twitter" /></a> <a rel="nofollow" class="tt" href="http://delicious.com/post?url=http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/&amp;title=Configuring+Oracle+10g+XE+for+Development" title="Post to Delicious"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-delicious.png" alt="Post to Delicious" /></a> <a rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/&amp;title=Configuring+Oracle+10g+XE+for+Development" title="Post to Digg"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-digg.png" alt="Post to Digg" /></a> <a rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/&amp;t=Configuring+Oracle+10g+XE+for+Development" title="Post to Facebook"><img class="nothumb" src="http://www.emphess.net/wp-content/plugins/tweet-this/icons/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.emphess.net/2008/02/20/configuring-oracle-10g-xe-for-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
