{"id":2831,"date":"2012-10-08T11:05:33","date_gmt":"2012-10-08T15:05:33","guid":{"rendered":"https:\/\/pitss.org\/us\/2012\/10\/08\/frm-93552-and-windows-error-a-desktop-heap-allocation-failed\/"},"modified":"2017-07-28T15:24:23","modified_gmt":"2017-07-28T19:24:23","slug":"windows-heap-frm-93552","status":"publish","type":"post","link":"https:\/\/pitss.org\/us\/2012\/10\/08\/windows-heap-frm-93552\/","title":{"rendered":"FRM-93552 and Windows Error &#8211; A Desktop Heap Allocation Failed"},"content":{"rendered":"<div>\n<div><strong><span style=\"font-size: 12pt\">Issue:<\/span><\/strong><\/div>\n<div><span style=\"font-size: 12pt\">Customer was experiencing FRM-93552 error at about 100 user sessions per server. Production system was Windows Server 2008 32-bit, Forms 11.1.1.4, with 8 Processors, 40GB RAM.<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">RAM Usage was low, only 15 out of 40GB used. CPU usage was averaging 5%. Thus system resources were not at the threshold.<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><strong><span style=\"font-size: 12pt\">Cause:<\/span><\/strong><\/div>\n<div><span style=\"font-size: 12pt\">At the time of the error, the following messages were logged in the Windows System Event Logs:<\/span><\/div>\n<blockquote style=\"margin-left: 30pt;margin-right: 0px\">\n<div><span style=\"font-size: 12pt\">Event Type: Warning<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Event source: Win32k<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Event ID: 243<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Description: A desktop heap allocation failed<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">OR<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Event Type: Warning<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Event Soure: Win32k<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Event ID: 244<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Description: Failed to create a desktop due to desktop heap exhaustion<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">OR<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Description: Application startup failures (0xc0000142)&#8230;<\/span><\/div>\n<\/blockquote>\n<div><span style=\"font-size: 12pt\">The reason Windows is throwing the error above, because the Forms Server is creating &#8220;frmweb.exe&#8221; sessions per every user. Whom of which all fall under OPMN. As more forms user sessions were being created, more windows heap space was getting used. Depending on how much heap was allocated, how many sessions, and how much data those sessions use, the heap eventually got depleted and could not create any new frmweb.exe sessions. <\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Thus, we found that the Windows Desktop Heap for Non-Interactive Processes was not sufficient enough to support the amount of end-users for the customer.<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><strong><span style=\"font-size: 12pt\">Resolution:<\/span><\/strong><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">Increased Non-Interactive Process Heap space from 512 to 4096. The amount of end-users that the system could support went from 100 to 1400 users. <\/span><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">NOTE: This process requires a hardware\/server reboot. Make sure the server is planned for an outage.<\/span><\/div>\n<div><\/div>\n<div><strong><span style=\"font-size: medium\">DISCLAIMER: This solution involves modifying the Windows Registry. Neither Oracle nor PITSS will be held responsible when making any updates to the Windows Registry. It is strongly recommended to make a full backup of the registry before modifying it. Apply at your own risk!<\/span><\/strong><\/div>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: 12pt\">To update non-Interactive heap, do the following:<\/span><\/div>\n<ol>\n<li><span style=\"font-size: 12pt\">Open Regedit<\/span><\/li>\n<li><span style=\"font-size: 12pt\">Navigate to the following registry key path: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\SubSystems<\/span><\/li>\n<li><span style=\"font-size: 12pt\">Open the &#8220;Windows&#8221; key<\/span><\/li>\n<li><span style=\"font-size: 12pt\">Locate SharedSection=&lt;some_number&gt;,&lt;some_number&gt;,&lt;some_number&gt;<br \/>\nexample: SharedSection=1024,3072,512<\/span><\/li>\n<li><span style=\"font-size: 12pt\"><span style=\"font-size: 12pt\">Update the 3rd value of Shared Section.<\/span><\/span>The following example increases non-interactive heap from 512KB to 4096KB<br \/>\n<u>Before:<\/u><br \/>\nSharedSection=1024,3072,<strong>512<\/strong><u>After:<\/u><br \/>\nSharedSection=1024,3072,<em><strong><span style=\"font-size: 12pt\">4096<\/span><\/strong><\/em><\/li>\n<li><span style=\"font-size: 12pt\">Save your changes to the key.<\/span><\/li>\n<li><span style=\"font-size: 12pt\">Restart the Server\/Hardware.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-size: 12pt\">NOTE: the maximum heap you can allocate between all 3 heaps, is 48MB. System will not accept anything higher than 48MB. For more on Windows Heap allocation: <\/span><a href=\"http:\/\/support.microsoft.com\/kb\/184802\"><span style=\"font-size: 12pt;color: #0066cc\">http:\/\/support.microsoft.com\/kb\/184802<\/span><\/a><\/p>\n<div><span style=\"font-size: 12pt\">\u00a0<\/span><\/div>\n<p><b><span style=\"font-size: 12pt\">NOTE: This issue can also occur in Windows Server 2008 64-bit (Standard or R2) as well as Forms\/Reports 11gR2.<\/span><\/b><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Issue: Customer was experiencing FRM-93552 error at about 100 user sessions per server. Production system was Windows Server 2008 32-bit, Forms 11.1.1.4, with 8 Processors, 40GB RAM. \u00a0 RAM Usage was low, only 15 out of 40GB used. CPU usage was averaging 5%. Thus system resources were not at the threshold. \u00a0 Cause: At the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[22,4,14,10],"tags":[15,11,16,12,23,13,24],"class_list":["post-2831","post","type-post","status-publish","format-standard","hentry","category-forms","category-install-config","category-resolve-issues","category-windows","tag-10g","tag-11g","tag-11gr2","tag-error","tag-forms","tag-installation-setup","tag-windows"],"_links":{"self":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/2831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/comments?post=2831"}],"version-history":[{"count":6,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/2831\/revisions"}],"predecessor-version":[{"id":9872,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/2831\/revisions\/9872"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/media?parent=2831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/categories?post=2831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/tags?post=2831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}