Check patentability & draft patents in minutes with Patsnap Eureka AI!

Log information recording method and device

An information recording and log technology, applied in the field of information processing, can solve the problems of reducing system execution efficiency, system stability, increasing PHP server communication overhead, and low log information recording efficiency, so as to reduce communication overhead, reduce overhead, and save equipment. cost effect

Inactive Publication Date: 2017-05-10
GUIYANG LONGMASTER INFORMATION & TECHNOLOGY CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, this requires a large equipment cost, and also increases the communication overhead between the PHP server and other devices due to the log cache, reducing the execution efficiency of the system and the stability of the system, and due to the need for communication between devices, it also makes The efficiency of log information recording is low

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
  • Log information recording method and device
  • Log information recording method and device
  • Log information recording method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to understand the technical solution of the present invention more clearly, the present invention will be described in detail below in conjunction with the accompanying drawings. The embodiments of the present invention have an exemplary function, and any insubstantial improvements made by those skilled in the art on the basis of the embodiments of the present invention shall fall within the protection scope of the present invention.

[0040] Such as figure 1 The method for recording log information shown can be used in a PHP server, which includes the following steps:

[0041] S101: Receive log information.

[0042] Before receiving log information, first apply for a shared memory space as a shared cache storage space. The shared cache storage space can be set according to the size of the system memory. When the system memory is sufficient, the shared memory space can be larger. Generally, the shared memory space can be 7-15KB (Ki lobyte, kilobyte), and usu...

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 belongs to the technical field of information processing and particularly relates to a log information recording method and device. The log information recording method comprises the following steps that log information is received; cache data in a shared cache storage space is read; the size of the cache data is judged; if the cache data is greater than or equal to a first predetermined value, the log information is added to the cache data, and the log information and the cache data are stored in a disk, wherein the size of the share and cache storage space is represented by X, the predetermined value is represented by Y, the Y is smaller than X but is greater than or equal to 0.75X; the cache data in a shared cache is emptied. The method can be used for recording of log information in a server, IO resource consumption can be reduced to the most degree, the device cost can be saved, the log information recording efficiency can be improved, and meanwhile the executing efficiency and stability of the system and the like are improved.

Description

technical field [0001] The invention belongs to the technical field of information processing, and in particular relates to a method and device for recording log information. Background technique [0002] In server development, log is an important function, which provides a very important reference for subsequent server optimization and problem finding. If the existing recording method of directly writing to the log is used, in a high concurrent server environment, it will bring a huge amount of IO (Input Output, Input Output)) resource consumption, and the IO throughput of the server will be seriously low. Reducing the execution efficiency and stability of the system will directly lead to downtime. At this time, the log function will appear to be outweighed by the loss. [0003] In addition, the existing PHP (Hypertext Preprocessor, hypertext preprocessor) server inputs the log information into the log file on the disk, and also uses a special cache server to realize the c...

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
IPC IPC(8): G06F9/54
Inventor 吴国兴周平余非陈正超
Owner GUIYANG LONGMASTER INFORMATION & TECHNOLOGY CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More