It seems my server killed a process due to it using too much RAM. Is this possible? If it can happen, how can I know when and what process it killed?
It's quite possibly OOM killer, killed your process. You may be able to find out what when etc by looking in the logs.
The actual log file varies by distribution so it could also be