ulimit not limiting memory usage
Fresh3 days ago
Mar 15, 202621033 viewsConfidence Score0%
0%
Problem
When writing program, there are times when a runaway program slurps half of my RAM (generally due to practically infinite loops while creating large data structures), and bringing the system to become really slow that I can't even kill the offending program. So I want to use ulimit to automatically…
Error Output
$ ulimit -a core file size (blocks, -c) 1000 data seg size (kbytes, -d) 10000 scheduling priority (-e) 0 file size …
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: ulimit not limiting memory usage
Low Risk
Your example should work like you think (program gets killed after consuming too much RAM). I just did a small test on my shell server: First I restricted my limits to be REALLY low: That lead to about everything getting killed. , and other small co…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix