如何模拟低内存的.NET应用程序? [英] How to simulate low memory for .net application?

查看:124
本文介绍了如何模拟低内存的.NET应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗯,我有调试内存分配问题。该应用程序运行的内存随着时间的推移。我需要模拟低内存系统的.NET窗口的应用程序,以此来更快速地再现出来的内存问题。

Well, I have to debug a memory allocation issue. The application runs out of memory over time. I need to simulate low memory system for a .net window app, as a way to reproduce the out of memory issue more quickly.

PS:我的初步调查表明,内存泄漏发生,而应用程序分配的非托管资源(管理DX)

PS: My initial investigation suggests that the memory leak is occurring while the application is allocating unmanaged resources (Managed DX).

推荐答案

另外写程序,所有分配系统内存的:)

Write another program that allocates all of your system's memory :)

另外,调试在虚拟机与低内存

Alternatively, debug in a VM with low memory

这篇关于如何模拟低内存的.NET应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆