Stop a process that eats up resources for too long?

I'm thinking of expanding my web hosting services to MUD hosting and that generally means that I would need to allow an SSH account w/ jailshell. Typically, as a security measure, I'm going to be blocking outgoing telnet/ssh/ftp connections since they can connect to their mud using their home connection. Are there any other security measures that I should also take?

And here's what may be my achilles heal in my decision to expand to this segment of hosting. Since this will be a shared hosting environment, I fear someone may intentionally/unintentionally create something like an infinite loop that may bog the server down.

Are there any linux utilities/programs that can watch for processes that eat up resources for too long and automatically kill it?

TIA.

 

 

 

 

Top