GithubHelp home page GithubHelp logo

Comments (12)

Unitech avatar Unitech commented on May 21, 2024

Hello, thanks for reporting issues.

PM2 is using the module https://github.com/arunoda/node-usage to retrieve monitoring data for a specific process, unfortunately it's still not compatible with Mac OSx, feel free to pull request.

But I would like to tell that pm2 is a production module, who should be mainly used on servers

Cheers !

from pm2.

jhurliman avatar jhurliman commented on May 21, 2024

I sent a pull request to node-usage (arunoda/node-usage#5) to address this. Once it is merged in and a new version is published to npm, does anything need to change in pm2?

from pm2.

Unitech avatar Unitech commented on May 21, 2024

Excellent, I will add a way to update pm2 smoothly

from pm2.

breaklee avatar breaklee commented on May 21, 2024

i'm using pm2 version 0.4.7. and i've installed usage(node-usage)..
but it can't operate. pm2 monit on macox.
how can i use it?

from pm2.

breaklee avatar breaklee commented on May 21, 2024

and my 'usage' version is 0.3.5

from pm2.

arunoda avatar arunoda commented on May 21, 2024

Node Usage has been patched with @jhurliman 's pull request.
And published to npm as 0.3.6

Hope now pm2 can be used in mac too :)

from pm2.

Unitech avatar Unitech commented on May 21, 2024

Ty
I've updated pm2 to 0.4.8

Here is the update procedure for people who wants to upgrade to newest version : https://github.com/Unitech/pm2#updating-pm2-and-keeping-processes-alive

from pm2.

 avatar commented on May 21, 2024

I think I got the same error :/

Did I need to install Monit on my Mac ? or node-usage do the same think like Monit ?

$ pm2 monit

/usr/local/lib/node_modules/pm2/lib/Monit.js:27
    throw new Error('You seems to run on a Mac OS, node-usage can\'t get monit
          ^
Error: You seems to run on a Mac OS, node-usage can't get monitor data
    at Object.Monit.init (/usr/local/lib/node_modules/pm2/lib/Monit.js:27:11)
    at /usr/local/lib/node_modules/pm2/bin/pm2:588:11
    at /usr/local/lib/node_modules/pm2/lib/Satan.js:152:5
    at /usr/local/lib/node_modules/pm2/node_modules/axon-rpc/lib/client.js:43:10
    at Parser.onmessage (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/sockets/req.js:65:8)
    at Parser.frameBody (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:106:10)
    at Parser.write (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:50:13)
    at Parser.frameHeader (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:81:30)
    at Parser.write (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:49:36)
    at Socket.EventEmitter.emit (events.js:95:17)

from pm2.

jhurliman avatar jhurliman commented on May 21, 2024

@igorissen, the short answer is that the daemon needs to be run as root on OSX. Run pm2 kill, then sudo pm2 start yourapp.json. I've submitted a pull request at #39 to catch this issue and print out a helpful error message instead of the outdated warning about node-usage not working on Mac OS.

from pm2.

jhurliman avatar jhurliman commented on May 21, 2024

Just a heads up, I submitted another pull request to node-usage that allows it to run on OSX without root privileges (arunoda/node-usage#7). If that gets merged, I'll modify my pull request for pm2 to not require the daemon to be run as root on OSX.

from pm2.

jhurliman avatar jhurliman commented on May 21, 2024

node-usage 0.3.7 is out, and my pull request has been updated.

from pm2.

 avatar commented on May 21, 2024

It works now ! Thank you.

from pm2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.