如何找出Node.js进程的CPU占用率?

释放双眼,带上耳机,听听看~!

有没有办法找出一个node.js进程的%cpu用法与代码?这样当node.js服务器正在运行并且检测到CPU已经超过了某个%时,那么它将会发出警报或控制台的输出。

尝试看这个代码: https://github.com/last/healthjs

Network service for getting CPU of remote system and receiving CPU usage alerts…

Health.js serves 2 primary modes: “streaming mode” and “event mode”. Streaming mode allows a client to connect and receive streaming CPU usage data. Event mode enables Health.js to notify a remote server when CPU usage hits a certain threshold. Both modes can be run simultaneously…

给TA打赏
共{{data.count}}人
人已打赏
安全技术

shell脚本监控mysql 数据库连接状态

2021-8-18 16:36:11

安全技术

C++ 高性能服务器网络框架设计细节

2022-1-11 12:36:11

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索