Jump to content

Recommended Posts

Posted

In the Linux operating system, the Node.js process may not be shut down or killed normally. This is usually related to process management, port occupation and exception handling. When we run a node.js process on a vps with full commands and permissions, we can use the ps and kill commands to find and end them, but in an virtual environment where only allows npm using, we have no way to end it. Even if we use disable node.js to end it, the node.js will still continue to run in the background.

Posted

If you enable Node through Plesk and let Passenger handle it, the server should start it when needed and kill it when it has no traffic. This only works for apps that receive HTTP traffic though. Passenger launches the app when the traffic comes in, and kills it after a period of inactivity.

If you start it manually with npm run start or similar, you have to contact support and ask for your processes to be killed. There is no way to kill a manually started node process, and as a result, our typical recommendation is to never start a node process manually.

We do offer VPS service with full SSH root access if you want total control over the app: https://heliohost.org/vps/ Those start at $4/month and come as an empty linux VM. You'll need to install node and anything else you need.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...