My application runs as a background process on Linux. It is currently started at the command line in a Terminal window.
Recently a user was executing the application
In my case this was happening with a Laravel queue worker. The system logs did not mention any killing so I looked further and it turned out that the worker was basically killing itself because of a job that exceeded the memory limit (which is set to 128M by default).
Running the queue worker with --timeout=600
and --memory=1024
fixed the problem for me.