I am facing this issue consistently, whenever I run some CPU and memory intensive processes so OS kills my mongod service. Due to which service goes into the failed state and everything stops.
journalctl -u mongod.service
Jun 01 04:41:18 leadsearch systemd: mongod.service: Main process exited, code=killed, status=6/ABRT Jun 01 04:41:18 leadsearch systemd: mongod.service: Failed with result 'signal'.
Is there any way to check details why my mongod service is being killed by OS?
Please suggested if there is anyway to fix this issue, or am I doing something wrong?