本文介绍了设置Windows进程(或用户)的内存限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以设置Windows XP中进程可以使用的系统范围内存限制?我有几个不稳定的应用程序,在大多数情况下都可以正常运行,但是会遇到一个错误,导致几秒钟内耗尽整个内存(或者至少我想就是这样).由于Windows变得完全无响应并且我丢失了工作,因此导致硬重置.

Is there any way to set a system wide memory limit a process can use in Windows XP? I have a couple of unstable apps which do work ok for most of the time but can hit a bug which results in eating whole memory in a matter of seconds (or at least I suppose that's it). This results in a hard reset as Windows becomes totally unresponsive and I lose my work.

我希望能够在Linux上执行类似/etc/limits的操作-例如,设置M90(设置90%的最大内存供单个用户分配).因此,无论如何,系统都会获得剩余的10%.

I would like to be able to do something like the /etc/limits on Linux - setting M90, for instance (to set 90% max memory for a single user to allocate). So the system gets the remaining 10% no matter what.

推荐答案

使用Windows 作业对象.作业就像进程组一样,可以限制内存使用和进程优先级.

Use Windows Job Objects. Jobs are like process groups and can limit memory usage and process priority.

这篇关于设置Windows进程(或用户)的内存限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 02:45