Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Certification Preparation
Other/General Certifications
Linux Program Dies with Message "Out of Memory"
darkerosxx
Anybody know how to make a program that uses X amount of memory die with a message saying "out of memory"? Permanently? The only way I know of is with OOM Killer and even then you have to adjust in the /proc/$pid directory, which means it's not permanent and won't last after a reboot.
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
darkerosxx
I had previously thought cgroups was not the way to do this, but it is... /thread
lsud00d
Thanks for the update! I hadn't heard of cgroups but found this great explanation:
https://sysadmincasts.com/episodes/14-introduction-to-linux-control-groups-cgroups
wolfinsheepsclothing
Cool link. Thanks!
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS