pm2 Questions
1
I am following this tutorial for setting up a node project on a Digital Ocean Ubuntu distribution. systemctl status pm2 shows the service is online:
App name │ id │ mode │ pid │ status │ restart │...
Nerval asked 9/7, 2016 at 2:2
1
Solved
I have been looking at various solutions around but when I put it all together, it looks very confusing.
I am trying to implement pm2 cluster mode for my application which has socket.io implementa...
1
I'm running a Node.js puppeteer script with pm2.
It's important to keep this process stable. After 2 days of work I see 2 restarts in my pm2 stats.
I want to find out what is causing the restarts. ...
Beatnik asked 27/6, 2020 at 16:9
1
Solved
I am looking for the simplest way to communicate a message to all the clusters of PM2, something as simple as using eventEmitter "emit" and "on" functions.
I would like to avoid using third party ...
Halfmast asked 20/5, 2020 at 15:50
1
Solved
Amazon AWS Ubuntu server
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
Problem: PM2 is out-of-date
$ pm2...
Clance asked 15/8, 2018 at 14:2
2
I'm trying to use pm2 on Heroku. I did have a look at the documentation. It looks like the application works fine once deployed, and the logs indicates that multiple instances has started on a 2X d...
2
I am using pm2 version 4.2.3
When I run this command: pm2 start node launchers/engine_launcher.js --name "engine", it starts the following:
id │ name │ namespace │ version │ mode │ pid
----------...
Cariole asked 22/3, 2020 at 14:25
6
I experimenting with pm2, which is a process manager for node.js applications. I tried their pm2 startup utility which generates and installs a startup script for pm2 when the system restarts.
I ...
2
I am using ES6 modules by adding the --experimental-modules arguments to Node. Running node --experimental-modules app.mjs works perfectly fine. However, when I run the same command with pm2 I get ...
Hallowmas asked 25/9, 2018 at 13:44
1
This is my main.js file:
import Koa from "koa";
const app = new Koa();
app.use(async ctx => ctx.body = "Hello, World!");
app.listen(3000);
This is my package.json file:
{
"type": "module",...
Scrope asked 6/8, 2019 at 18:46
2
For the purpose of load testing i created an API which request around 2000 bookings at a time and after hitting this API, server(AWS EC2 instance) reaches to the more than 20% of CPU consumption an...
Synthiasyntonic asked 5/1, 2018 at 7:35
1
Solved
I am a lowly frontend developer trying to improve by backend skills, and to that end I have written my API in nodejs and am using GitLab, AWS EC2, docker and pm2 to serve the backend.
I am nearly ...
Koheleth asked 8/4, 2020 at 14:53
1
Solved
I first invoked PM2 with pm2 start index.js --watch --ignore-watch "node_modules". However, despite telling it to watch my files for changes and then reload, it is not using the latest version of m...
Medicable asked 13/4, 2020 at 14:43
1
Solved
I'm using node-cache to create a local cache, however, the problem I have is that when using the application with PM2 which creates an application cluster the cache is created multiple times, one f...
Tamah asked 29/12, 2019 at 20:42
3
Solved
I use the awesome pm2 package to keep my node.js apps alive, but i have an issue I don't know how to fix.
One of my apps requires several scripts, a server and a few clients. Often when I restart ...
Lamination asked 1/2, 2014 at 17:46
4
Solved
I have a Node.js app ready which is workable, but has known and unknown bugs which crash the app. In such cases it would be nice if pm2 can restart the node app. Is this feature already available i...
1
Solved
Sorry about the question unclarity.
Basically, I need to run my code with -r esm for it to work.
With node, I simply do "node -r esm app.js"
How could I do the same with PM2? I remember doing it e...
7
I have a daemon that must be run as root on startup.
I use pm2 to start other apps but can not figure out if it can start an app as root. Can it be done?
If not, what are my options?
5
I have an express that I want to run on port 80. --> app.listen(80);
I'm using PM2 to manage the app (restarting, stopping, monitoring, etc.) . I have a deployment shell script whose last command ...
Urrutia asked 4/7, 2017 at 17:5
1
Solved
I am encountering a strange memory leak in our live-environment, where (system) objects in the heap keep growing.
Heap dump
Here is a memory dump where the memory usage grew to 800MB:
Notice th...
Otherwise asked 15/11, 2019 at 10:34
5
Solved
We are trying to start our app with pm2 0.12.8 on ubuntu 14.04 with octa core proccessor. The read me on the git hub has a very straight forward command for running node app in cluster mode.
# Cl...
Misfeasor asked 20/3, 2015 at 10:0
2
Solved
I am using pm2 to manage my node.js processes. Very happy with it so far.
What is the purpose of $ pm2 save? What is the purpose of saving a process list? I don't quite understand from the documen...
2
Solved
I have an express app that I start in terminal with following command to enable debug logs in it:
DEBUG=custom:* npm start (on Ubuntu)
SET DEBUG=custom:* & npm start (on Windows)
On producti...
4
Solved
My question is about running HTTP-server in combination with PM2.
The problem I face is that:
HTTP-server requires as input a folder which is the root of the website and a port number to run the w...
Togs asked 4/8, 2015 at 9:2
1
Solved
I've been transferring some projects that have been executing on the same machine to individual dockers each. I've tried to use pm2 on one of these docker projects to make sure the service would re...
Haslett asked 28/12, 2018 at 18:22
© 2022 - 2024 — McMap. All rights reserved.