Winform Memory Usage

  • Thread starter Thread starter George Yu
  • Start date Start date
G

George Yu

Hi,
I created a fairly large data winforms applications and
have deployed it on a terminal server. Every instance of
the application, when executed on the terminal server,
seems to take about 100 megs of memory. Can someone please
give me some suggestions on how to minimize memory usage
or share the application on the terminal server between
users?
 
One thing that might help some: You could pre-compile the EXEs to
native code using ngen.exe. That way the memory images will be shared.
(If it has to JIT the IL at runtime, then each login ends up with a
separate copy of the native code in memory.)
 
I tried using the ngen utility but the message returned
indicated "specified module could not be found". I opened
a command prompt navigated to the directory folder where
the utility resides and typed ngen c:\VSAPP\myapp.exe. Can
you suggest some docs on how ngen is utilized?
 
Back
Top