What are the memory limits of applications for Windows 10?

The application memory limits for Windows Phone 8.1 are easy to find on MSDN. But I can’t find the final information about memory limits for applications on Windows 10, and especially on Windows 10 Mobile.

What are the restrictions for each device family (Xbox, desktop, phone, IoT)?

+6
source share
1 answer

I found that they are available as follows:

  • Windows.System.MemoryManager.AppMemoryUsage = current memory usage (unsigned long)
  • Windows.System.MemoryManager.AppMemoryUsageLevel = 0, 1, 2, etc.
  • Windows.System.MemoryManager.AppMemoryUsageLimit = for 512 MB, the models seem to be tied to 185 MB, for 1 GB models - 390 MB, and therefore on (unsigned long)

In our tests, a OutOfMemoryException occurs when AppMemoryUsage is close to AppMemoryUsageLimit and a new object cannot be allocated in adjacent free memspace. It seems that AppMemoryUsageLimit cannot be changed and is fixed depending on the installed RAM, but at the moment it is not very sure.

+8
source

All Articles