Trying N|Solid
- Download the N|Solid Runtime https://downloads.nodesource.com/
tar -xf nsolid-v1.0...cd nsolid-v1.0..../nsolid /path/to/your/app.js
Now let's get tricky
NSOLID_SOCKET=8000 ./nsolid /path/to/your/app.jsnsolid-cli --socket 8000 pingnsolid-cli --socket 8000 infonsolid-cli --socket 8000 system_infonsolid-cli --socket 8000 process_statsnsolid-cli --socket 8000 system_statsnsolid-cli --socket 8000 async_activitynsolid-cli --socket 8000 startup_timesnsolid-cli --socket 8000 snapshot > app.heapsnapshotnsolid-cli --socket 8000 profile_start- (wait a bit, also helps if your app is doing something)
nsolid-cli --socket 8000 profile_stop > app.cpuprofile- load
app.heapsnapshotandapp.cpuprofilein Chrome Devtools and explore
If you want to play with the N|Solid Console (the fancy browser UI)
- Download the nsolid runtime if you haven't already
- Download etcd https://github.com/coreos/etcd/releases
- Download the nsolid proxy
- Download the nsolid console
- extract them all
- start etcd like so (just for testing)
etcd -data-dir machine0 -name machine0 - start the proxy
npm start(from thensolid-proxy-v...folder) - start the console
npm start(from thensolid-console-v...folder) - start your app
NSOLID_HUB=localhost:4001 NSOLID_APPNAME=myapp ./nsolid /path/to/your/app.js - go to http://localhost:3000 and look around!