![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is the memory footprint of static methods of a windows app running on a server when the server spins up multiple instances of the application? In my envirionment, we have a Citrix server farm running .Net 2.0 windows apps. Does the framework allow for instances of the same application to access the same memory space where static methods are stored (assuming the security context is the same for each instance)? In this academic group, you're probably not going to get the exposure you |
#3
| |||
| |||
|
|
"Todd" <Todd (AT) discussions (DOT) microsoft.com> wrote in message news:45C7CFF6-C29B-4731-BACC-220B37F10493 (AT) microsoft (DOT) com... What is the memory footprint of static methods of a windows app running on a server when the server spins up multiple instances of the application? In my envirionment, we have a Citrix server farm running .Net 2.0 windows apps. Does the framework allow for instances of the same application to access the same memory space where static methods are stored (assuming the security context is the same for each instance)? |
) surprised if multiple .NET applications could all be
#4
| |||
| |||
|
|
On Fri, 01 Jun 2007 20:03:41 -0700, pvdg42 <pvdg42 (AT) newsgroups (DOT) nospam wrote: "Todd" <Todd (AT) discussions (DOT) microsoft.com> wrote in message news:45C7CFF6-C29B-4731-BACC-220B37F10493 (AT) microsoft (DOT) com... What is the memory footprint of static methods of a windows app running on a server when the server spins up multiple instances of the application? In my envirionment, we have a Citrix server farm running .Net 2.0 windows apps. Does the framework allow for instances of the same application to access the same memory space where static methods are stored (assuming the security context is the same for each instance)? Though, I'm reading this from the m.p.d.framework newsgroup and I can't say that I really understand the question. What, for example, is the point about asking about static methods versus other methods? It's not like when you instantiate a new instance of a class, new copies of the code that goes with that class are created too. If there is really some distinction between static and instance methods here that's important to the question, perhaps the OP could be more clear about that. On the face of it, it's not readily apparent why he's asking only about static methods. Anyway, I'm no expert and hopefully someone who is will correct/elaborate as necessary. However, my recollection is that Windows doesn't even share physical memory between native applications. What it does do (again, if I recall correctly) is avoid copying executable read-only code to the swap file, using the original executable file as the backing store for virtual memory. I would guess the .NET Framework can also do this, so at least multiple instances don't eat up your swap file. But I would be (pleasantly ) surprised if multiple .NET applications could all beresident, sharing the same physical RAM containing the executable code. Pete |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |