Method and device for acquiring process key data

A technology of key data and collection methods, applied in the direction of multi-programming devices, etc., can solve the problems of high conflict probability, large statistical value, decreased reliability of statistical data, etc., to enhance reliability, avoid mutual exclusion, and reduce access processes effect of numbers

Active Publication Date: 2011-06-08
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] (1) Since no protection measures have been taken, if the time when the agent is cleared and the background service process is added to 1 is very close, the scheduling sequence is exactly: the agent agent reads the statistical value, the background service process reads the statistical value, and the agent agent Clearing, the background service process writes the value after adding 1 to the data block in the memory, then the clearing action of the agent agent will be invalidated, so that the statistical value of the next minute will be seriously large
[0010] (2) For the same statistical data, all background service processes share the same memory block, and the problem described in (1) also exists
[0011] (3) As the number of background service processes increases, the probability of conflict will increase, which will eventually lead to a sharp decline in the reliability of statistical data

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 acquiring process key data
  • Method and device for acquiring process key data
  • Method and device for acquiring process key data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] image 3 It is a flowchart of an embodiment of the process key data collection method of the present invention, as image 3 shown, including the following steps:

[0031] Step 300: Set in advance the index of different statistical data in process key data with process ID and type ID.

[0032] Figure 4 It is a schematic diagram of the logical relationship between the background service process and the agent process of the present invention to realize the collection of process key data by reading and writing the same shared memory space, as Figure 4 As shown, for the same piece of shared memory, since the process identification (pid) of each process is not repeated, like this, the present invention further disperses the similar statistical data of different background processes into different data blocks as much as possible. In the case of sufficient memory space, the ideal situation is: a data block can be accessed by at most an agent process and a background servic...

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 acquiring process key data. The method reduces access processes of each data block by indexing different statistical data in the process key data consisting of process identification and type identification. For the acquisition of the process key data, background service processes and agent processes are reduced, and the probability of interferences happened among the background service processes is reduced, so that the mutual exclusion of the background service processes and the agent processes are effectively avoided, and the reliability of the acquisition of the process key data is enhanced.

Description

technical field [0001] The invention relates to background service process technology for providing services to a large number of users, in particular to a method and device for collecting process key data of the background service process. Background technique [0002] The process key data of the background service process refers to key statistical data such as the number of received requests, the number of successful responses, and the number of abnormal failures of the background service process. These data are an important basis for measuring the quality of background services such as efficiency, performance, and stability, and are also the starting point for troubleshooting, which has far-reaching significance for products with a large number of users. However, due to some reasons, the existing data collection methods have defects, resulting in unsatisfactory collection results. [0003] Through data collection, the key data of the background service process is collect...

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): G06F9/46
Inventor 舒军田明袁清万单领邢玉东
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products