All Projects → nswbmw → cpu-memory-monitor

nswbmw / cpu-memory-monitor

Licence: other
CPU & Memory Monitor, auto dump.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cpu-memory-monitor

Easydeviceinfo
📱 [Android Library] Get device information in a super easy way.
Stars: ✭ 1,698 (+6430.77%)
Mutual labels:  cpu, memory
Ios Monitor Platform
📚 iOS 性能监控 SDK —— Wedjat(华狄特)开发过程的调研和整理
Stars: ✭ 2,316 (+8807.69%)
Mutual labels:  cpu, memory
Touch Bar Istats
Show CPU/GPU/MEM temperature on Touch Bar with BetterTouchTool!
Stars: ✭ 141 (+442.31%)
Mutual labels:  cpu, memory
Xfce4 Genmon Scripts
🐭 XFCE panel generic monitor scripts
Stars: ✭ 69 (+165.38%)
Mutual labels:  cpu, memory
nodejs
Node.js in-process collectors for Instana
Stars: ✭ 66 (+153.85%)
Mutual labels:  cpu, memory
Iglance
Free system monitor for OSX and macOS. See all system information at a glance in the menu bar.
Stars: ✭ 1,358 (+5123.08%)
Mutual labels:  cpu, memory
Wgcloud
linux运维监控工具,支持系统信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,API接口,大屏展示,拓扑图,进程监控,端口监控,docker监控,文件防篡改,日志监控,数据可视化,web ssh,堡垒机,指令下发批量执行,linux面板,探针,故障告警
Stars: ✭ 2,669 (+10165.38%)
Mutual labels:  cpu, memory
Detoxinstruments
Detox Instruments is a performance–analysis and testing framework, designed to help developers profile their mobile apps in order to better understand and optimize their app's behavior and performance.
Stars: ✭ 513 (+1873.08%)
Mutual labels:  cpu, memory
hardware
Get CPU, Memory and Network informations of the running OS and its processes
Stars: ✭ 70 (+169.23%)
Mutual labels:  cpu, memory
Pm2 Server Monit
Monitor server CPU / Memory / Process / Zombie Process / Disk size / Security Packages / Network Input / Network Output
Stars: ✭ 247 (+850%)
Mutual labels:  cpu, memory
Rainbarf
it's like Rainmeter, but for CLI!
Stars: ✭ 1,087 (+4080.77%)
Mutual labels:  cpu, memory
cpu monitor
ROS node that publishes all nodes' CPU and memory usage
Stars: ✭ 52 (+100%)
Mutual labels:  cpu, memory
Walle
iOS Application performance monitoring
Stars: ✭ 19 (-26.92%)
Mutual labels:  cpu, memory
Server Stats
Statsy is a easy to use open source PHP tool for developers, that allows you to return various types of information about your server.
Stars: ✭ 101 (+288.46%)
Mutual labels:  cpu, memory
Heim
Cross-platform async library for system information fetching 🦀
Stars: ✭ 572 (+2100%)
Mutual labels:  cpu, memory
Sysstat
Performance monitoring tools for Linux
Stars: ✭ 2,055 (+7803.85%)
Mutual labels:  cpu, memory
Sympact
🔥 Stupid Simple CPU/MEM "Profiler" for your JS code.
Stars: ✭ 439 (+1588.46%)
Mutual labels:  cpu, memory
React Adaptive Hooks
Deliver experiences best suited to a user's device and network constraints
Stars: ✭ 4,750 (+18169.23%)
Mutual labels:  cpu, memory
Pubg mobile memory hacking examples
Pubg Mobile Emulator Gameloop Memory Hacking C++ code examples. Ex: Name, Coord, Bones, Weapons, Items, Box, Drop etc.
Stars: ✭ 224 (+761.54%)
Mutual labels:  cpu, memory
doc
Get usage and health data about your Node.js process.
Stars: ✭ 17 (-34.62%)
Mutual labels:  cpu, memory

cpu-memory-monitor

CPU & Memory Monitor, auto dump.

Install

$ npm i cpu-memory-monitor --save

Usage

require('cpu-memory-monitor')(options)

example:

require('cpu-memory-monitor')({
  cpu: {
    interval: 1000,
    duration: 30000,
    threshold: 60,
    profileDir: '/tmp',
    counter: 3,
    limiter: [5, 'hour']
  },
  memory: {
    interval: 5000,
    threshold: '500mb',
    ...
  }
})

will generate:

cpu-${process.pid}-${Date.now()}.cpuprofile
memory-${process.pid}-${Date.now()}.heapsnapshot
leak-memory-${process.pid}-${Date.now()}.heapsnapshot
require('cpu-memory-monitor')({
  cpu: {
    interval: 1000,
    duration: 30000,
    threshold: 60,
    profileDir: '/tmp',
    counter: 3,
    limiter: [5, 'hour']
  }
})

means: every 1000ms check CPU usage, when CPU(%) > 60% for 3 times, then dump 30000ms CPU usage(.cpuprofile) to /tmp, dump could be triggered at most 5 times an hour.

you can also use:

$ kill -USR2 PID

see heapdump.

Options

  • cpu{Object}
    • interval{Number}: interval(ms) for check CPU usage, default: 1000
    • duration{Number}: duration(ms) for profiling CPU, default: 30000
    • threshold{Number}: process max CPU(%) usage, default: 90
    • profileDir{String}: directory for save cpuprofile, default: process.cwd()
    • counter{Number}: the number of CPU > threshold, then dump, default: 1
    • limiter{Array}: options pass to limiter, default: [3, 'hour']
  • memory{Object}
    • interval{Number}: interval(ms) for check Memory usage, default: 1000
    • threshold{String}: process max Memory usage, default: 1.2gb, see bytes
    • profileDir{String}: directory for save heapsnapshot, default: process.cwd()
    • counter{Number}: the number of Memory > threshold, then dump, default: 1
    • limiter{Array}: options pass to limiter, default: [3, 'hour']

NB: If omit cpu/memory option, cpu-momery-monitor will not monitor it.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].