The strace out is normal when the parent ruby process is idle, it will fork a child process to process a new request.
Memory limit may not be the cause of the problem. It prevents a ruby process from using more memory than the limit.
If you lose the ssh when it happens, it is likely that the...