rails: kill rails process if memory usage exceeds limit within 2 checks