by
jcampbell >> Tue, 28 Jun 2005 23:56:31 GMT
Not entirely correct with the SharedSection description
SharedSection specifies the system and desktop heaps using the following format:
SharedSection=xxxx,yyyy
where xxxx defines the maximum size of the system-wide heap (in kilobytes) and yyyy defines the size of the per desktop heap. The default value of the per desktop heap under Windows NT 3.5 (512K) can support approximately 2,500 windows. Increasing the desktop heap by 256K or 512K normally provides enough memory to correct "Out of Memory" errors messages.
should in fact be
SharedSection specifies the system and desktop heaps using the following format:
SharedSection=xxxx,yyyy,zzzz
where
xxxx is the size of the shared heap common to all desktops, in kilobytes (in kilobytes)
yyyy is the size of the desktop heap needed for each desktop that is created in the interactive window station, WinSta0, in kilobytes.
zzzz is the size of the desktop heap needed for each desktop that is created in a noninteractive window station, in kilobytes.
So depending on how you are running your Jade.exe or whatever will depend on what you have to change.
Assuming you're running under the control of a Jaws service or as a standard Jade service then the desktop value involved will be the zzzz value.
However you need to be very careful about changing this value as it impacts on all non-interactive windowstations/desktops and will limit the number of non-interactive windowstations/desktops that can be created on the machine which could prevent things from running at all. This is due to the fact that there is a limited overall desktopheap available to be shared amongst the non-interactive windowstations/desktops (this is dependent on O/S and configuration).
So for example Windows 2000 with Terminal Services installed has approx 18MB of desktopheap available to be shared amongst the non-interactive windowstations/desktops so if you use the default value of 512kb for zzzz this will allow for approx 36 windowstation/desktops to be created, if you change this value to 1024kb then you've just halved the possible number that can be created. Note these desktops etc are not only used by Jade/Jaws services but also by TaskScheduler, IIS etc.