Re: Increase non-interactive heap space on Windows

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Number of Processes ??? Re: Increase non-interactive heap space on Windows

#57648
Ben Hochstedler
Participant

Only 512KB is allocated for non-interactive processes’ heap on Windows (NT, 2000, XP, 2003, etc).  Too many processes in QDX will eat it up, and occassionally you’ll see the following if another non-GUI process is started & not enough heap space is available:

Quote:

Application popup: cmd.exe – Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.

The command can be any command that is run under a non-interactive service (a service that is not marked as being able to interactive with the Windows desktop).

Workarounds:

  • Mark QDX service as being able to interactive with desktop (will use the desktop heap space for which there’s by default 4MB)

  • Consolidate threads into fewer processes
  • Increase the non-interactive heap space: http://support.microsoft.com/default.aspx?scid=kb;en-us;824422” class=”bbcode_url”>http://support.microsoft.com/default.aspx?scid=kb;en-us;824422
  • Quick instructions for option c:

  • In Registry Editor, locate the following registry key: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerSubSystems

  • Open the “Windows” value, locate the SharedSection parameter string in the Value field, and change the 3rd & 4th parameters from “512,512” to “2048” (a 4th parameter is actual invalid and is ignored if present).
  • Close the Registry Editor and reboot the system.
  • Ben Hochstedler

    Lead Software Engineer

    GE Healthcare, Milwaukee, WI

    Forum Statistics

    Registered Users
    5,115
    Forums
    28
    Topics
    9,291
    Replies
    34,426
    Topic Tags
    286
    Empty Topic Tags
    10