Guy Bertental
Guy Bertental

Reputation: 604

Maximum memory size limit for ASP.NET application on windows 2008 64bit

What is the Maximum memory size limit for ASP.NET application on windows 2008 64bit?

Thanks, Guy Bertental

Upvotes: 2

Views: 6086

Answers (3)

David
David

Reputation: 25460

There are 2 limits

By itself, you are limited to what 64bit Windows will provide as an addressable space - that amounts to 8TB. When a future version of 64bit Windows expands that maximum you should see that immediately reflected in .NET applications running on the 64bit CLR - there is no hardcoded or .NET architectural limit within the 64bit address space.

However .NET does have a hardcoded limit of 2GB per object. About the only realistic way you can reach this is by defining really big arrays, such as new int[1000000000]. This is also the main reason for the limit (apart from some issues with memory fragmentation), as the .NET framework standard defines array indexes as an int.

Upvotes: 3

Joseph
Joseph

Reputation: 25523

This is going to depend on a number of things.

  1. How much memory can a worker process on your machine use? (I believe this is 2 GB for both 32 bit and 64 bit OSes at the moment, although I could be incorrect on that)
  2. Is your application running on it's own application pool?
  3. How many worker processes are running for your application pool? (i.e. web app gardening)

Upvotes: 3

Nick
Nick

Reputation: 13424

The 64-bit CLR will let you see an address space of 8 TB.

Keep in mind that memory fragmentation may mean that the largest contiguous space you can allocate is significantly less.

Upvotes: 1

Related Questions