Hi,
is there anybody with experiences on developing .net applications on
terminal servers? I recently experienced some issues that have arisen
while developing a really small application that should run on terminal
servers. Actually, it even will be started by a service in 20 to 40 user
sessions at the same time - and that's where I run into problems. The
application is written in C# and at the moment it is just a simple form
with just a label control on it.
JIT seems to compile the assembly seperately for every user session and
as a result, CPU load raises up to 100 percent for a few seconds
(depending on how many cores or CPUs are present). It's just a peak but
I'm not really happy with that peak

Is there any way to reduce this
heavy load? Ngen.exe was my first thought but it didn't help. Also I
tried to store my assembly in GAC (c:\windows\assembly) which also
didn't have an effect. Any ideas?
The next issue I experienced was memory usage. On my local vista client
the program used about 4MB of memory according to the task manager. But
when I run my program on a terminal server it suddenly uses around 10 MB
of memory which is kind of confusing to me. Usually I wouldn't give much
about it but not when I think of 40 users running a program that uses 10
MB of memory which makes 400 MB in total just to show a small form. I
already removed all unnecessary dependancies from my project which
reduced memory usage from 15MB down to 10MB but for this project it is
still quite much. Any ideas on this?
Thanks in advance