From: "Wayne E. Seguin" Date: 2007-07-08T11:06:09+09:00 Subject: Re: CPU/Memory limiting --Apple-Mail-1--605261006 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jul 07, 2007, at 21:55 , TongKe Xue wrote: > I think there is a misunderstanding. > My goal is not to enforce these limits at compile time. > > My goal is to enforece these limits at run time. > > You exceed the memory limit? I don't allow you to allocate more > memory. > You exceed your cpu slice? I swap you out and run another thread for a > while. You will have to do this external to the application via monitoring utilities. For Linux you might be able to use Monit (http://www.tildeslash.com/ monit/) If you use Solaris, you could take advantage of its lovely SMF. Good luck. -- Wayne E. Seguin Sr. Systems Architect & Systems Admin wayneseguin@gmail.com --Apple-Mail-1--605261006--