<?xml version="1.0" encoding="windows-1252"?>
<node id="1016371" title="Re: Out of memory problem in Windows XP 32-bit: only 1GB occupied" created="2013-01-31 13:10:30" updated="2013-01-31 13:10:30">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;A 32-bit OS should be able to handle all 4GB.&lt;/i&gt;&lt;/blockquote&gt;

&lt;p&gt;That's not so. 32-bit windows only make 2GB of virtual memory available to each process; the other 2GB is reserved for use by the OS.

&lt;p&gt;That can be extended to 3GB using a [http://technet.microsoft.com/en-us/library/bb124810(v=exchg.65).aspx|startup switch], but then executables need to be re-built with a link time option to make use of it.

&lt;blockquote&gt;&lt;i&gt;"Out of memory" error. Checking the Windows Task Manager I see that Perl is only using around 1GB.&lt;/i&gt;&lt;/blockquote&gt;

&lt;P&gt;It sounds like the program is trying to extend a hash that currently has consuming at or close to 1GB of data; When perl needs to extend a hash, it doubles the size of the base element; that may well be pushing you over the 2GB limit; hence you run out of memory.

&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'&lt;/div&gt;
&lt;div&gt;Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.&lt;/div&gt;
&lt;div&gt;"Science is about questioning the status quo. Questioning authority". &lt;/div&gt;
&lt;div&gt;In the absence of evidence, opinion is indistinguishable from prejudice.
&lt;/div&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1016362</field>
<field name="parent_node">
1016362</field>
</data>
</node>
