Thank you, I tried "ulimit -Sv 1024000" successful, finally I wrote this line "* hard as 1024000" into /etc/security/limits.conf, so it can be apply when system booting. > Check out ulimit. It controls a number of parameters such as maximum > memory size, core dump size, open file descriptors... >>On Tue, 26 Aug 2008 19:16:35 -0600, 梁晨 <lcpcsky@xxxxxxxxxxxx> wrote: >> hi, >> I encountered such a problem when a program have some bug that it will >> ask for endless memory, until the system completely dead, I can only >> reboot it. Can I do some restriction of the max memory per process? >> Thanks! ___________________________________________________________ 雅虎邮箱,您的终生邮箱! http://cn.mail.yahoo.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html