npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

blend-memory

v1.0.4

Published

A memory monitor and dashboard for Node.js application on development.

Downloads

9

Readme

blend-memory

中文版

作者:

陈元广

介绍

blend-memory 是一个轻量级的 NodeJS 进程监控工具,它提供 进程内存、V8 堆空间内存、操作系统内存 三大维度的数据可视化展示。 前端部分,借助 Vue2ChartJS 提供了一个不错的动态展示面板。

作者基于memeye内存监控工具,重写其dashboard文件夹中的index.js和server.js,以及lib文件夹中的Collector.js,实现了将监控基于主进程,虽然会对主进程造成一定的影响,使数据具有微小的偏差,但是可以针对线上单进程环境进行性能监控,且无需进行服务器多个安全组端口的开发

blend-memory 可以主进程中使用,进行数据收集器,可以在主进程的端口下进行数据展示页面的访问;方便在生产环境中的使用;

注意

收集数据为单进程;无发收集分布式架构的数据 当前监控代码寄托在主进程中,对主进程具备一定的影响,数据相对真实;

特点

  • 轻量级
  • 简单
  • 面向开发环境
  • 可视化

Note: Memeye 暂时只支持单进程,NodeJS 分布式进程还不适用,所以不建议在产品环境使用。

兼容性

  • Node v7.x

安装 & 使用

运行下面命令安装 :


npm install blend-memory --save-dev

以express-generator生成的项目为例

. app.js文件

const {BMConfig} = require('blend-memory');

var app = express();

BMConfig(app);

. bin/www 文件

const {BMServer} = require('blend-memory');

app.set('port', port);
var server = https.createServer(app);
var io=BMServer(server) //返回一个io对象,项目中如果使用io对象,可以将此添加为全局,方便在其他模块应用

最后打开你的浏览器,输入下面地址:(blendMemory路径为界面路径)

http://localhost:3000/blendMemory

就这么简单!

许可

MIT License

Copyright (c) 2016-2020 chenyuanguang