Why isn't "(ulimit -d 1000; firefox) &" working?
Posted
by
MaxB
on Super User
See other posts from Super User
or by MaxB
Published on 2014-08-24T00:42:22Z
Indexed on
2014/08/24
4:23 UTC
Read the original article
Hit count: 403
I'm trying to limit the memory usage of firefox
to prevent it from stalling the whole system with problematic web sites.
I tried, in bash
:
(ulimit -d 1000; firefox) &
This should limit the memory usage to 1000kB. Then I opened YouTube, and noticed, in top
, that firefox
is using 2.6% of the memory, or about 200MB, and not crashing. Clearly the limit is being ignored. Why is that, and how can I enforce it correctly?
© Super User or respective owner