如何为应用程序数据增加虚拟内存页面文件的大小 [英] how to increase the size of virtual memory page file for the application data
问题描述
随着时间的推移,我们的应用程序会分配越来越多的应用程序数据,有没有办法根据应用程序计算自动增加虚拟内存页面文件?
Our application will allocate more and more application data as the time goes by, and is there any way to increase the virtual memory page file automatically based on the application calculation?
操作系统:Windows 32 位
OS: windows 32 bit
谢谢
推荐答案
这样做没有意义,因为您使用的是 x86 体系结构,并且每个应用程序有 2GB 的限制.
There is no point in doing this, since you are using x86 architecture and it has a limit of 2GB per application.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx
将页面文件大小扩展到您需要的最大值.而且,让应用随时间线性消耗内存应该会迫使您重新考虑您的设计,因为没有任何页面文件可以帮助您避免因内存耗尽而导致程序死亡.
Extend the page file size to the maximum that you'll ever need, instead. And, having the app consume memory linearly over time should force you to rethink your design, as no page file will help you escape the death of your program due to memory exhaustion.
这篇关于如何为应用程序数据增加虚拟内存页面文件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!