Debugging Tools
📄️ Linux
The following tools are recommended for debugging TDengine TSDB on Linux.
📄️ Windows
Purpose
📄️ Memory Optimization
TDengine provides a memory allocator configuration script, settaosmalloc.sh, for optimizing memory allocation strategies. With this script, users can easily switch between different memory allocator modes to improve the performance and stability of TDengine.
📄️ JMeter
Background
📄️ Heartbeat and Leader Election
TDengine maintains liveness awareness among cluster members through heartbeats. When a heartbeat times out, a new leader is elected by the Raft protocol (multi-replica) or by the Arbitrator (dual-replica). When a cluster experiences frequent leader switches, fails to elect a leader, or becomes briefly unavailable for writing, you typically need to analyze and tune the heartbeat and election parameters. This document describes the heartbeat and election mechanism, lists all related parameters, provides tuning guidance, and explains what information to collect when a problem occurs.
📄️ Workload Recording and Replay
Workload recording captures API calls in a Native client process. Use taosreplay to inspect the recording and reissue those calls against a test cluster to reproduce an issue. Recording covers Native connections, not WebSocket or REST connections. Each client process creates one recording session; a directory can contain multiple sessions.