-
Notifications
You must be signed in to change notification settings - Fork 37
Examples
mschwartz edited this page Nov 29, 2011
·
8 revisions
In the examples/ directory, there are a number of example programs.
NOTE: systat.js only works with Linux because it relies on the /proc filesystem.
systat.js is a handy system monitoring tool for technically minded webmasters. By default, it refreshes its screen once per second.
In real-time, you can watch your CPU usage, memory usage, disk activity, and paging/swapping activities. If you run this on a busy server, it will give you a good idea if your server is CPU bound, memory bound, disk bound, etc.
While systat.js is running, it responds to the following keys:
- 1 = set refresh time to 1 second
- 2 = set refresh time to 2 seconds
- 3 = set refresh time to 3 seconds
- 4 = set refresh time to 4 seconds
- 5 = set refresh time to 5 seconds
- c = compress output
- q = quit
Compressing output removes blank lines displayed. This is useful if the display is too tall for your terminal or terminal window.