Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for clearing log file cache

A log file and log technology, applied in the computer field, can solve problems affecting the normal operation of business modules, accumulation of multiple caches, waste of storage resources, etc.

Active Publication Date: 2020-09-08
杭州迪普信息技术有限公司
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, based on the consideration of business processing efficiency, the software business module does not trigger cache reclamation when applying for memory, but directly returns an error, resulting in excessive cache accumulation, excessive cache occupation of memory space, wasting storage resources and affecting business modules. normal operation

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
  • A method and device for clearing log file cache
  • A method and device for clearing log file cache
  • A method and device for clearing log file cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to solve the above problems, in the prior art, even if a fixed time is set to forcibly clear the log record cache, when the amount of cache data is large, the log record storage method arranged in chronological order causes great trouble to the process of traversing the cache record information (now There are technical log records storage methods such as figure 1 The specific performance is that before clearing the cache records, the system's traversal process of all cache records is slow and time-consuming, which directly affects the entire cache clearing process, reduces the feedback speed of the system, and seriously affects the software business modules that are in progress at the same time. processing efficiency.

[0037] In view of this, this application provides an effective solution that is to build a storage method of log files according to a specific path, please refer to figure 2 , the log record caches generated one by one in chronological order a...

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 present application provides a method and apparatus for cleaning a log file cache. According to the specific path to build log file storage mode, the log record cache arranged in chronological order is stored according to log type and the log ID classification, so that the number of log caches traversed and cleaned up by the system is greatly reduced, and the system cleanup process delay is reduced. In addition, the method of setting a fixed time to clean the cache file in the prior art cannot be combined with the actual system memory usage, so that the resource is often wasted in actual use. The application triggers the cache cleaning by setting a dynamic recovery cycle, and dynamically adjusts the frequency of the cache cleaning according to the memory usage status and the latest cleaning time cycle in real time, so as to ensure the normal operation of the service module.

Description

technical field [0001] The present application relates to the field of computers, and in particular, to a method and apparatus for clearing the cache of log files. Background technique [0002] With the rapid development of network technology, the software system will apply for file caching during the process of reading and writing logs. A large number of log files can create a large file memory cache. When a process requests memory and finds that the memory is insufficient, it generally triggers cache reclamation. However, based on the consideration of processing business efficiency, the software business module will not trigger cache reclamation when applying for memory, but will directly return an error, resulting in excessive cache accumulation, excessive cache occupying memory space, wasting storage resources and affecting business modules. normal operation. SUMMARY OF THE INVENTION [0003] In order to solve the above technical problems, the present application pr...

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 Patents(China)
IPC IPC(8): G06F16/18G06F16/17G06F16/16
Inventor 曾露魏方征
Owner 杭州迪普信息技术有限公司