Skip to content

Instantly share code, notes, and snippets.

@brycebaril
Created Sep 22, 2015
Embed
What would you like to do?
So you want to try N|Solid? Here's a simple playlist:

Trying N|Solid

  1. Download the N|Solid Runtime https://downloads.nodesource.com/
  2. tar -xf nsolid-v1.0...
  3. cd nsolid-v1.0...
  4. ./nsolid /path/to/your/app.js

Now let's get tricky

  1. NSOLID_SOCKET=8000 ./nsolid /path/to/your/app.js
  2. nsolid-cli --socket 8000 ping
  3. nsolid-cli --socket 8000 info
  4. nsolid-cli --socket 8000 system_info
  5. nsolid-cli --socket 8000 process_stats
  6. nsolid-cli --socket 8000 system_stats
  7. nsolid-cli --socket 8000 async_activity
  8. nsolid-cli --socket 8000 startup_times
  9. nsolid-cli --socket 8000 snapshot > app.heapsnapshot
  10. nsolid-cli --socket 8000 profile_start
  11. (wait a bit, also helps if your app is doing something)
  12. nsolid-cli --socket 8000 profile_stop > app.cpuprofile
  13. load app.heapsnapshot and app.cpuprofile in Chrome Devtools and explore

If you want to play with the N|Solid Console (the fancy browser UI)

  1. Download the nsolid runtime if you haven't already
  2. Download etcd https://github.com/coreos/etcd/releases
  3. Download the nsolid proxy
  4. Download the nsolid console
  5. extract them all
  6. start etcd like so (just for testing) etcd -data-dir machine0 -name machine0
  7. start the proxy npm start (from the nsolid-proxy-v... folder)
  8. start the console npm start (from the nsolid-console-v... folder)
  9. start your app NSOLID_HUB=localhost:4001 NSOLID_APPNAME=myapp ./nsolid /path/to/your/app.js
  10. go to http://localhost:3000 and look around!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment