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.
- package/README.md +1 -1
- package/lib/app.js +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
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.
|
|
4
|
-
"description": "A pm2 module for
|
|
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
|
{
|