A few days ago, some of my friends inform me , when they open my site www.engr-faisal.co.nr in IE7 or higher(in beta version) then their browser giving a message, which is “Out of memory at line ##”.
Actually I use Opera 9.23 as my default browser and also IE6 and others. But I never faced this type of problem. Even my site working pretty nice with all browser except IE7.
Actually “Out of memory(OOM)” case in modern computers when the operating system is unable to create any more virtual memory. If all of its potential backing devices have been filled. Such a system will be unable to load any additional programs and since many programs may load additional data into memory during execution, these will cease to function correctly.
The Operating systems such as Linux will attempt to recover from this type of OOM condition by terminating a low-priority process, a mechanism known as the OOM Killer.
This behavior can occur if the desktop heap in the WIN32 subsystem is depleted. Because in Windows NT 3.4’s default heap size is 512K , and 3072K in case of Windows NT 3.1.
Now how to remove this OOM message :(?
Okay .. To correct this problem, we may increase the size of the desktop heap. But before do this you have to know, how to modify the registry. Otherwise it can cause serious problems if you modify the registry incorrectly. For more information about how to back up and restore the registry you can read this article.
Now get ready………………
From the Edit menu, choose String.
Increase the SharedSection parameter.
SharedSection specifies the system and desktop heaps using the following format:
Add “,256” or “,512” after the yyyy number.
SharedSection uses the following format to specify the system and desktop heaps:
Increase the zzz number to “256” or “512.”
Hope this will help to prevent OOM.:)