• Stars
    star
    348
  • Rank 121,840 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

👀 The eye of memory. A lightweight memory monitor and dashboard for Node.js application on development.
memeye logo

Build Status npm version Package Quality npm license

Memeye

中文版

Introduction

Memeye is a lightweight NodeJS process monitoring tool that provides data visualization of process memory, V8 heap space memory, and operating system memory.
The front part, with Vue2 and ChartJS, provides a nice dynamic dashboard.
Memeye in the host process, only the implantation of a simple data collector, the other work is to start a child-process, by the child-process to carry out.
This will minimize the impact of Memeye's code on the host process to ensure the authenticity of the data.

Feature

  • Lightweight
  • Simple
  • For development
  • Visualization

Note: Memeye only support a single process, NodeJS distributed process is not applicable, it is not recommended in the product environment。

Motivation

As we all know, NodeJS is very sensitive to memory.
In April last year I used NodeJS to build a marketing project, on the day of project online PV broke one million.
Which is showing a continuous upward trend in memory, in the process of troubleshooting problems, i want to find a lightweight, as long as the visual display of the use of memory tools, but no result.
Then there is the idea of this project, but at that time because of the busy only made a simple Demo to use (Memeye v0.0.3).
Recently there is time, once again turned out to reorganize and revision, add more type of the data display.

Demo

See preview demo

Compatibility

  • Node v7.x
  • Node v6.x

Install & Usage

For install simply run :

npm install memeye --save-dev

Then require it in your nodejs application

const memeye = require('memeye');
memeye();

Then open your browser and load address:

http://localhost:23333  //23333 port by default.

That's it! No more options, no more config, just so easy.

How it works

Memeye has three core concept: Collector, Indicator and Dashboard.
While Collector runing in your nodejs process, Indicators and Dashboard runing on the child-process, in this way Memeye will make as little influence as possible to your nodejs process.

Collector

Collector will wathching and collecting data from the host node process、v8 heap and operrating system ,then send the datas to dashboard process with IPC communication channel.

Indicator

Indicator like a state machine . When attribute changed, the instance of Indicator will emit an event. So we can use it to handle our indicators data of process, v8 heap and OS.

Dashboard

The dashboard , will calling at the child process way. It will create an Indicator instance and start a http server which provide a socket.io instance.
Then bind the indicator with process IPC channel, to recive massage from parent process.
And then bind the indicator with socket.io, to send messages while indicator attrbutes changed.

The commication between Collector, Indicator and Dashboard

commication.jpeg

Test

Simply run:

npm test

Some feature may be

  • Mutil process support
  • Report export

License

MIT License

Copyright (c) 2016-2017 JerryC

More Repositories

1

understand-tcp-udp

📙 理解 TCP 和 UDP
292
star
2

GlacierJS

🚀 A progressive framework helps you to build PWA app easier !!!
TypeScript
183
star
3

unittest-demo

📘 Node.js单元测试实例
HTML
106
star
4

Tools

🛠 每个开发者都应该有一个自己的工具箱
78
star
5

wxapp-router

🛵 The router for Wechat Miniprogram
TypeScript
48
star
6

docsify-remote-markdown

Remote markdown plugin of docsify
JavaScript
26
star
7

module-seed

🌱 一套优雅的 Typescript Module 工作流
TypeScript
15
star
8

super-cache

💾 一个跨 JS 平台的缓存库,支持缓存逻辑代理,支持自定义数据存储
TypeScript
15
star
9

handlebarjs-guide

📗 Handlerbars不完全指南
8
star
10

use-npm-in-weapp

在微信小程序开发中使用 NPM 示例。
JavaScript
6
star
11

concurrent-merger

Concurrent function called merger
TypeScript
5
star
12

learn-music

📕 乐理学习笔记
CSS
4
star
13

method-fuse

避免函数过热调用
TypeScript
4
star
14

skipper-upyun

A simple skipper adapter for upyun
JavaScript
4
star
15

mini-logger

✏️ A mini logger with four level
TypeScript
4
star
16

sql-base

SQL基础笔记
GCC Machine Description
3
star
17

express-sso-auth

A express middleware that design and implementing strategy for Single Site-On authorization.
JavaScript
3
star
18

programming-knowledge

Programming knowledge summary for JC
2
star
19

dragDemo

演示原生Javascript实现的图标拖拽效果
2
star
20

BlueSun_V3

BlueSun 博客,第三版本,由 Hexo 驱动.
SCSS
1
star
21

mac-setup

💻 A Guide for Developer who new to MacOS
1
star
22

time-buried

Buried time point.
JavaScript
1
star
23

Front-end-Development-kit

本文总结一下本人所接触到的前端开发工具,只为梳理一下,各位看官轻拍。
1
star
24

sailsx

The scaffold extend by Sails
JavaScript
1
star
25

BlueSun

基于NodeJS实现的全静态化个人博客网站,目前很无耻的挂载在gitpages上。
JavaScript
1
star
26

socket-mvc

The socket mvc server framework
JavaScript
1
star
27

pwa-in-action

《PWA实战》系列
1
star
28

My2048

基于Jquery的 2048 demo版
JavaScript
1
star
29

passport-flyme

passport strategy for flyme.com
JavaScript
1
star