.Net CLR memory usage limit

Ok, so here is the problem. In our production environment (ASP.Net), our servers have a huge amount of memory, as well as a huge number of users / sessions. My computer has 8 gigs and I am the only user. In production, we (rarely) get it System.OutOfMemoryException.

With this background information, here's the question: can the CLR be considered that I only have memory or less? IIRC, there is a command line option for this for Java.

Another option is to make some really large objects to fill the memory in order to simulate low memory conditions. But this requires modification of assemblies, and huge objects can be cached to disk.

Recommendations? Or other options?

+4
source share
2 answers

One way to simulate a system with lower memory / resources is to create a system virtual machine and allocate a certain amount of memory that you want to have. This feature has both VMWare and MS Virtual Machines.

In addition to modeling machines with a lower resource, virtual machines are also a great way to manage test environments.

+4
source

Regardless of whether your program receives OutOfMemoryExceptionno matter how much RAM is on your computer. OutOfMemoryExceptionmeans that the process has run out of virtual memory, which is the same for each process independent of physical RAM

,

  • 32 64-
  • /LargeAddressAware ()

, - 64- , - 32

+1

All Articles