pm2-perfmonitor 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/lib/app.js +1 -1
  3. package/package.json +4 -3
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pm2-perfmonitor
2
2
 
3
- A pm2 module for performance monitor.
3
+ A pm2 module for **zombie process** and **CPU overload** detection.
4
4
 
5
5
  # Features
6
6
 
package/lib/app.js CHANGED
@@ -348,7 +348,7 @@ const processChecker = async () => {
348
348
  `CPU Overload detected: ${name} (pm_id: ${pm_id}, pid: ${app.pid})`,
349
349
  )
350
350
 
351
- if (enablePerfCollection) {
351
+ if (enablePerfCollection && !perfSamplingStats.get(pm_id)) {
352
352
  perfSamplingStats.set(pm_id, true)
353
353
 
354
354
  await performPerfSampling({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pm2-perfmonitor",
3
- "version": "2.5.0",
4
- "description": "A pm2 module for performance monitoring. Automatically detect zombie processes and restart it",
3
+ "version": "2.5.2",
4
+ "description": "A pm2 module for zombie process and CPU overload detection.",
5
5
  "author": {
6
6
  "name": "elenh",
7
7
  "email": "yisiwings@163.com"
@@ -31,7 +31,8 @@
31
31
  "keywords": [
32
32
  "pm2",
33
33
  "monitor",
34
- "zombie process"
34
+ "zombie process",
35
+ "cpu overload"
35
36
  ],
36
37
  "apps": [
37
38
  {