I've started a NodeJS process on Linux server by this:
nohup node server.js
It's weird that a couple hours later, this process will be killed, I don't why.
UPDATE
I monitored the CPU/Memory usage, it looks good, memory is enough. Here how I create my NodeJS server:
// start server
process.on('uncaughtException', function (ex) {
console.log("uncaught exception : ")
console.log(ex)
});
var server = app.listen(config.port, function () {
var host = server.address().address
var port = server.address().port
console.log("your server is listening at http://%s:%s", host, port)
})
Start Command:
[localhost]$ nohup node server.js > log.txt 2>&1 &
Still, The process has been killed without any exception output.
Is there any method that can let me know what's going on here ?