Performance Monitoring
Monitoring TON server performance
Tools like htop
, iotop
, iftop
, dstat
, nmon
and others are good for measuring real-time performance, but they lack functionalities when it comes to troubleshooting past performance.
This guide recommends and explains how to use the Linux sar (System Activity Report) utility for TON server performance monitoring.
提示
This guideline helps to identify if your server experiences any resource shortage, not if validator-engine performs badly.
Installation
SAR Installation
sudo apt-get install sysstat
Enable automatic statistics gathering
sudo sed -i 's/false/true/g' /etc/default/sysstat
Enable the service
sudo systemctl enable sysstat sysstat-collect.timer sysstat-summary.timer
Start the service
sudo systemctl start sysstat sysstat-collect.timer sysstat-summary.timer
Usage
By default sar gathers statistics every 10 minutes and shows statistics for the current day, starting at midnight. You can check it by running sar without parameters:
sar