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

Method and system for logging

A log and application system technology, applied in the log recording system and log recording field, can solve the problems of restricting the application system business processing throughput, the business processing efficiency is greatly affected, and the performance bottleneck of the application system, so as to eliminate performance bottlenecks and improve Throughput, the effect of reducing resource consumption

Active Publication Date: 2018-01-23
ADVANCED NEW TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be understood that log records require disk operations and file read and write operations, while application system business processing is performed in memory, because disk operations are slower than memory operations, and the performance of using disks is lower than that of using memory (usually memory read Writing is more than 10 times faster than disk reading and writing), so logging is slower than business processing
However, in the application system, the amount of business processing is directly proportional to the log records, so the efficiency of business processing will be greatly affected by the log records
Especially in the case of high concurrency and busy system, the real-time recording of logs on the local disk of the application server will be the performance bottleneck of the application system, which will not only consume the resources of the server, but also restrict the throughput of the application system's business processing

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 system for logging
  • Method and system for logging
  • Method and system for logging

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the above objects, features and advantages of the present application more obvious and understandable, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0052] refer to figure 1 , which shows a flow chart of the steps of Embodiment 1 of a logging method of the present application, which may specifically include the following steps:

[0053] Step 101, generating a log;

[0054] When the business processing module of the application system needs to record logs, for example, when a page access request or service call request arrives, a corresponding log is generated.

[0055] In practice, the log can record all the behaviors generated by the system and express them according to a certain specification. We can use the information recorded by the log system to troubleshoot the system, optimize the performance of the system, or adjust the behavior of the sys...

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 log recording method and system, wherein the method includes: generating a log; detecting the current load status of the application system; if the current load status reaches the first preset threshold, writing the log to the preset In the cache: when the load status of the application system meets a preset condition, write the log in the cache to the local hard disk of the application system. It is used to eliminate the performance bottleneck caused by log records in the application system, save server resources, and improve the throughput of business processing in the application system. The application can eliminate the performance bottleneck caused by log records in the application system, save server resources, and improve the throughput of business processing in the application system.

Description

technical field [0001] The present application relates to the technical field of system log processing, in particular to a log recording method and a log recording system. Background technique [0002] In an application system, the log is a very important functional component. At present, the application system generally uses the disk log as an incidental function of the application system. Logs can be used to record all behaviors generated by the application system, including business operation behaviors and the behavior of the system framework itself, and express them according to certain specifications. With these records, relevant technical personnel can perform system-level or business-level troubleshooting, as well as system performance optimization. [0003] A common log recording method is to record the log on the local disk of the application server in real time, and relevant technicians log in to the application server to view the log. It can be understood that l...

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): G06F11/34
Inventor 刘冬东
Owner ADVANCED NEW TECH CO LTD
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