[wplug] memory cap on programs?
Poyner, Brandon
bpoyner at ccac.edu
Tue Feb 3 15:43:26 EST 2004
You can limit memory resources using the ulimit (sh) or limit (csh)
commands.
#!/bin/sh
ulimit -d 5000 # max data size of a program is 5 MB
ulimit -s 5000 # max stack size of a program is 5 MB
ulimit -m 15000 # max resident set size is 15 MB
/usr/X11/bin/mozilla
Brandon Poyner
Network Engineer II
CCAC - College Office
412-237-3086
-----Original Message-----
From: John Harrold [mailto:jmh17 at pitt.edu]
Sent: Tuesday, February 03, 2004 2:53 PM
To: western PA LUG
Subject: [wplug] memory cap on programs?
i have a friend who's installed the latest mozilla happiness on redhat
via
the dag rpm repository:
http://dag.wieers.com/home-made/apt/
quite frequently, netscape or mozilla goes crazy and starts sucking up
all
the ram. the hard drive grinds away and the system becomes unresponsive.
i
was wondering if it was possible to put a memory cap on a program. that
way
it could be killed automatically if it started getting greedy with
resources.
--
------------------------------------------------------------------------
--
| /"\
john harrold | \ / ASCII ribbon
campaign
jmh at member.fsf.org | X against HTML mail
the most useful idiot | / \
------------------------------------------------------------------------
--
What difference does it make to the dead, the orphans, and the
homeless,
whether the mad destruction is brought under the name of
totalitarianism or
the holy name of liberty and democracy?
--Gandhi
------------------------------------------------------------------------
--
gpg --keyserver keys.indymedia.org --recv-key F65A739E
------------------------------------------------------------------------
--
More information about the wplug
mailing list