pm2 Questions
1
Solved
I want to install pm2 on my rasspberry pi 3:
npm install -g pm2
but i get this error:
(node:5118) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use
os.tmpdir() instead.
npm ERR! Err...
Protractile asked 28/8, 2018 at 9:51
2
Solved
I have a NodeJs microservice. Doing yarn start normally works perfectly fine. When I try to use pm2 to start this as a background service, facing the below issue:
/Users/sairamk/.pm2/logs/api-erro...
3
I'm using PM2 to let the NodeJS (Express) run continuously. On my local machine, the following works in my packages.json:
"scripts": {
"start": "pm2 start ./bin/www"
}
After that, I use 'npm st...
2
Solved
I see the above when trying to debug Node.js script with Visual Studio Code.
My launch.json looks like
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name...
Carrasco asked 23/10, 2017 at 16:45
2
Solved
Using a pm2.json configuration file, how do I remove id | app.name | prefix in my logs?
My example: 5 | api.bran | part
I went through all pm2 --help and there's no info on how to do it. Is it ...
1
Solved
Actually I'm unable to understand the use of pm2 scale [app-name] 10 but I know pm2 start app.js -i 4 is used for starting instances of app in cluster mode.
And one other question what would happe...
2
Solved
Is it possible to stop or disable a pm2 module ?
I did install the pm2-logrotate module but recently the community found an issue which is affecting our services and we need to stop or disable the...
Club asked 16/4, 2018 at 0:14
2
In my package.json file I have two scripts, start and production, start script is for local development while production script is for deployment. Using npm i would just do npm run production but h...
2
Solved
Is there any boiler plate code to use pm2 with webpack watch option for ts files auto hot reload?
pm2 start index.js is helpful to run directly, but how to add multiple tasks before doing it like ...
Elbertina asked 31/3, 2018 at 6:25
1
I tried pm2 to restrict restart limit with --max-restarts but it's not working and also tired min_uptime
sudo pm2 start server.js --max-restarts=5
And I also tried with yml file
apps:
- name:...
2
Is it possible to use pm2 with custom c programs?
If so, how is this accomplished?
Does it work well?
Is you are already using pm2 for node.js apps would it make sense to use it for a c program as ...
2
Solved
pm2 is a great tool to manage node apps. How does it work with grunt/glup ?
I didn't find any useful clues after Googling for 20 minutes.
Participial asked 29/7, 2014 at 1:57
2
2
In my local node server , it fails on any uncaught exception and has to be manually restarted. So local was run using either forever or pm2.
But my development server is AWS Elastic Beanstalk with ...
Lipp asked 6/5, 2017 at 19:21
1
Solved
I'm trying to start my nodejs app, the default cmd is the following :
pm2 start app.js
I can't do that because I use cross-env and the script as below:
"start": cross-env DOTENV_FILE=.env nod...
Lallans asked 4/10, 2017 at 9:34
1
Solved
When we are running multiple node services in a single machine, its becoming hard to restart one service with id as id is a sequence number allocated in order by PM2. So instead using the id is it ...
1
Solved
I'm using Amazon Linux AMI 2017.03.1 (HVM), SSD Volume Type.
And I installed node.js, npm via the way like this below because I want to
install globally and if I don't install pm2 globally, it do...
Nial asked 1/9, 2017 at 6:39
2
I have following settings set for PM2 Logrotate:
rotateInterval= * * 23 * * *
max_size= 100MB
I want to rotate the logs every 23 hours and/or keep max 100MB log files. But for some odd reason, ...
Simpleton asked 1/6, 2017 at 8:14
1
Solved
I am new to Node.js. I have built my first Node.js server. I am doing some research to improve performance of node js server in production. So I learned about NGINX and Process Manager(PM2).
NGINX...
1
Solved
I have a nodejs app running on server.
When should I use pm2 restart,and when should pm2 reload be used?
Referred to the pm2 documention here,but couldn't figure out the difference in use case of...
1
Solved
Visual Studio code has some awesome debug functionality built in that makes it easy to debug applications with node. However, my application is configured to use PM2. How can I set up Visual Studio...
Herrah asked 4/12, 2016 at 18:9
0
Last couple of weeks, I am struggling with pm2 100% CPU usage which hangs my node server.
I tried reading logs but I didn't find any issue there.
My node version: 6.9.1
PM2 is : 2.4.4.
OS: Ubunt...
2
Solved
I have PM2 on a GoDaddy Ubuntu cloud server. pm2 list shows as follows:
Is the fourth column the process id? Every one seems to be 0. Is there something wrong with my installation?
Neddie asked 12/2, 2017 at 17:6
1
I have an express application running and I am using PM2 to keep it alive and restart when there is any error in the system. PM2 logs the error and restarts which is perfectly fine.
But I need to n...
0
I am configuring production infrastructure for node.js with pm2 and I am stuck with the relation between ecosystem.json file and pm2 save command that writes some sort of dump file. As far as I und...
© 2022 - 2024 — McMap. All rights reserved.