Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for managing file objects in memory in log collection process

A technology of log files and file objects, which is applied to manage the field of file objects in memory during the log collection process, and can solve problems such as affecting program performance, performance degradation, and inaccurate data

Pending Publication Date: 2020-11-20
BANK OF CHINA
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The shortcomings of the existing technology mainly include: if the parameter close_inactive is set unreasonably, it will lead to performance degradation in some scenarios, and in some scenarios it will cause too many file handles to be occupied
If the parameter clean_inactive is set unreasonably, in some scenarios, the data will be inaccurate, and in some scenarios, the log collection program will take up a lot of memory, which will affect the performance of the program.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for managing file objects in memory in log collection process
  • Method and device for managing file objects in memory in log collection process
  • Method and device for managing file objects in memory in log collection process

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0034] figure 1 It is a schematic diagram of a method for managing file objects in memory during the log collection process of an embodiment of the present invention, as shown in figure 1 As shown, the embodiment of the present invention provides a method for managing file objects in memory during the log collection process, which realizes precise management of open handle log files in memory and reduces memory usage. The method includes:

[0035] Step 101: Obtain the log reading location record file;

[0036] Step 102: According to the log reading location record f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a device for managing a file object in a memory in a log acquisition process. The method comprises the following steps: acquiring a log reading position record file; determining the latest sequence mark of each rolling log instance according to the log reading position record file, and storing the latest sequence mark into a log file latest sequence mark mapping; reading a to-be-collected log file, and obtaining a latest sequence mark of the to-be-collected log file; performing matching query on the latest sequence mark of the log file to be acquired and thelatest sequence mark mapping of the log file, opening a handle of the log file to be acquired through multiple judgment rules to generate a log file to be read, and putting the log file to be read into a read file list of a memory; traversing the read file list, obtaining the latest sequence mark of the to-be-read log file, comparing the latest sequence mark of the to-be-read log file with the updated latest sequence mark mapping of the log file, closing a handle of the to-be-read log file according with a set rule, and clearing the handle from the read file list of the memory.

Description

technical field [0001] The invention relates to the technical field of computer information processing, in particular to a method and device for managing file objects in memory during log collection. Background technique [0002] This section is intended to provide a background or context for implementations of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section. [0003] With the continuous development of computer technology, logs can no longer be used only for engineers to manually troubleshoot errors, but can also become data sources in fields such as big data analysis and intelligent operation and maintenance. Therefore, an excellent log collection tool is essential. In the process of text log collection, in order to reduce data duplication and data loss, it is necessary to record the location where each log file is collected in the memory, and periodically persist it, so that the breakpoin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/18G06F16/14G06F16/174
CPCG06F16/1815G06F16/14G06F16/174
Inventor 李晓宁朱梦
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products