Home >Common Problem >What is logger buffer size used for?

What is logger buffer size used for?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-29 10:31:1359475browse

The function of log recorder buffer size log is: mainly used to feedback usage information and record to engineers to facilitate problem analysis (used during development); since users themselves do not often generate upload logs, so for User is useless.

What is logger buffer size used for?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

1. Theoretically speaking, the bigger the better within a certain value (because it determines the number of application layers you can open)

2. Logger buffer size Logs are mainly used to provide engineers with feedback on usage information and records to facilitate problem analysis (used during development) and are useless to users.

3. Since users themselves do not often generate upload logs, there is no need to adjust it to the minimum.

To sum up:

Users can just use the default settings. For example, in the case of high device configuration, the default value or even the maximum value can be increased to meet the personalized needs of users

Notes on the logger buffer:

1. Size setting: for some For applications, it may be necessary to set the log buffer size higher than the default, but usually the default log buffer is used to start tuning.

2. Instance allocation: The log buffer is allocated when the instance is started. If the instance is not restarted, its size cannot be adjusted subsequently. It is a circular buffer. The current write address moves back and forth as the server process writes change vectors to it.

3. Batch processing: The log writer process writes out vectors in batch mode. At this time, the space it occupies will become available and can be covered by more change vectors. At times of peak activity, change vectors may be generated faster than the log writer process can write them out. If this happens, all DML activity will stop for a few milliseconds while the log writer clears the buffer.

For more computer-related knowledge, please visit the FAQ column!

The above is the detailed content of What is logger buffer size used for?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn