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.js
nsolid-cli --socket 8000 ping
nsolid-cli --socket 8000 info
nsolid-cli --socket 8000 system_info
nsolid-cli --socket 8000 process_stats
nsolid-cli --socket 8000 system_stats
nsolid-cli --socket 8000 async_activity
nsolid-cli --socket 8000 startup_times
nsolid-cli --socket 8000 snapshot > app.heapsnapshot
nsolid-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.heapsnapshot
andapp.cpuprofile
in 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!