HomeMogDBMogDB StackUqbar
v3.1

Documentation:v3.1

Supported Versions:

Other Versions:

Trace Observation Enhancement

Availability

This feature is available since MogDB 3.1.0.

Introduction

In MogDB 3.1.0, walwriter, pagewriter, and checkpointer are three key threads. 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.

Benefits

During running the production database, users can specify gstrace to trace the three newly added key background threads to obtain the tracing result, quickly locate the fault, and improve the diagnosis efficiency.

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.