Winform Memory Usage

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?
 
J

Joe White

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.)
 
G

George Yu

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top