HomeMogDBMogDB StackUqbar
v5.0

Documentation:v5.0

Supported Versions:

Other Versions:

Trace Observation Enhancement

Availability

This feature is available since MogDB 3.1.0.

Introduction

MogDB version 5.0 provides the trace function for the three key thread modules walwriter, pagewriter and checkpointer. By turning on the trace feature, the system generates detailed log messages during the runtime of the background modules. These logs record key information such as function call stacks, parameter values and return values. Debuggers can analyze and troubleshoot based on these log messages to understand the specifics of thread operation.

Benefits

The trace feature in MogDB version 5.0 provides debuggers with a powerful tool to trace and observe the operation of background threads. By generating detailed log information, debuggers can analyze and troubleshoot thread anomalies to solve problems. At the same time, according to specific debugging needs, debuggers can choose to trace the operation of the entire module or specify the tracing of specific functions in the module to achieve more accurate debugging results.

Description

Three trace modules, walwriter, pagewriter, and checkpointer are added. The trace function allows users to use gstrace start to trace the three modules and trace one or more functions related to the background thread specified in advance. Some data probes are included in these functions to help later observation and diagnosis.

By enabling, exporting, and disabling gstrace, users can use gstrace to trace specified modules during the period from the time when the gstrace is enabled to the time when data is exported.

When commissioners find that any thread module is running abnormally, they can specify gstrace to trace the thread module and some functions in the thread module. With gstrace dump, the execution path (displayed in stack) of the function that is traced can be obtained in the specified time period and key data or data structures in functions can be traced. This method can help obtain effective tracing results, quickly locate the fault, and improve the diagnosis efficiency.

gstrace

Copyright © 2011-2024 www.enmotech.com All rights reserved.