堆使用在PM2中是什么意思 [英] What does Heap Usage mean in PM2

查看:90
本文介绍了堆使用在PM2中是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 pm2 monit 时,堆使用情况在自定义指标"窗口中是什么意思?

What does Heap Usage mean in the "Custom Metrics" window when running pm2 monit?

我的服务器的价值危险地接近100%.

The value for my server gets dangerously close to 100%.

推荐答案

堆是编程语言用来存储全局变量的内存.默认情况下,所有全局变量都存储在堆内存空间中.

The heap is a memory used by programming languages to store global variables. By default, all global variable are stored in heap memory space.

可能是由于您的程序变量所致.

It`is maybe because of your programs variable.

您可以在超出限制后重置它,或者强制pm2自动为您完成.

you can reset it after it exceeded the limit or force pm2 do it for you automatically.

pm2 start api.js --max-memory-restart 300M

这篇关于堆使用在PM2中是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆