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

A method and apparatus for cleaning log file cache

A log file and log technology, applied in the computer field, can solve problems such as waste of storage resources, accumulation of multiple caches, and memory space occupied by caches

Active Publication Date: 2019-01-25
杭州迪普信息技术有限公司
View PDF10 Cites 17 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 apparatus for cleaning log file cache
  • A method and apparatus for cleaning log file cache
  • A method and apparatus for cleaning 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 cached 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 record storage methods such as figure 1 Shown), the specific performance is that before cleaning the cache records, the system’s traversal process of all cache records is slow and time-consuming, which directly affects the entire cache cleaning process, reduces the feedback speed of the system, and seriously affects the software business modules in progress at the same time processing efficiency.

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

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, in particular to a method and device for clearing log file cache. Background technique [0002] With the rapid development of network technology, the software system will apply for file cache during the process of reading and writing logs. A large number of log files can generate a large memory cache of files. When a process applies for memory and finds that the memory is insufficient, it generally triggers cache reclamation. However, based on the consideration of business processing efficiency, the software business module does not trigger cache recycling 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. Contents of the invention [0003] In order to solve the above technical problems, the present application provides a m...

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/17G06F16/16
Inventor 曾露魏方征
Owner 杭州迪普信息技术有限公司
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