Home » Questions » Computers [ Ask a new question ]

How can I restrict RAM usage for a particular user or process?

How can I restrict RAM usage for a particular user or process?

I'm using a background service that leaks memory from time to time. To prevent using the Alt+SysRq REISUB[1], I'd like to restrict the RAM usage for one process or a system user.

Asked by: Guest | Views: 223
Total answers/comments: 1
bert [Entry]

ulimit is your friend. Check out the -m flag. I think you set this before you launch your process and it applies from then on (in the current shell).