Lightweight Linux tools for on-demand performance monitoring during load testing?

Solution 1:

  1. Some essential information can be obtained from OperatingSystemMXBean using JConsole or equivalent, you won't have to install anything
  2. The most lightweight tool of will be sar
  3. You can take a look at Sigar which has Java API so you can create a web app which will collect and display the metrics of your choice. It's also used under the hood of PerfMon Plugin for Apache JMeter load testing tool
  4. If you prefer more or less ready solution take a look at Monitorix