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

Method and device for judging whether system or system module is blocked or not

A system module and judgment module technology, applied in the computer field, can solve problems such as the inability to simply and intuitively reflect the overall performance of the system, and achieve the effects of reducing analysis complexity, reducing resources, and overcoming loss.

Inactive Publication Date: 2018-12-07
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 3. It cannot simply and intuitively reflect the overall performance of the current system

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 judging whether system or system module is blocked or not
  • Method and device for judging whether system or system module is blocked or not
  • Method and device for judging whether system or system module is blocked or not

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] figure 2 It is a schematic diagram of the counter setting of the method for judging whether a system or a system module is blocked according to an embodiment of the present invention;

[0048] Such as figure 2As shown, the application program includes 4 sub-modules, and a module counter is set in each sub-module. Since the module counter is set in the module, it is at the module level, and the counters of different sub-modules are not allowed to be named repeatedly.

[0049] Since sub-module 1, sub-module 3 and sub-module 4 do not call other internal modules, they are all independent modules, and their internal counters are independent counters. The counters in submodule 1, submodule 3, and submodule 4 only reflect the performance (thread blocking) of their corresponding submodules.

[0050] Submodule 2 is an intermediate module that calls submodule 3 and submodule 4. The value of counter 2 is the sum of the values ​​of counter 3 and counter 4. The dependency betw...

Embodiment 2

[0053] Figure 5 is a schematic flowchart of a system for judging congestion according to an embodiment of the present invention;

[0054] exist Figure 5 , the system sets a global counter (bv). The global counter bv is set in the system, and the addition and subtraction operations of the global counter bv are respectively performed at the entrance and exit of all modules in the system. The global counter can reflect the performance of the system (thread blocking).

[0055] 2. Counter counting (counting module)

[0056] A system or a system module is triggered (executed) according to different requests.

[0057] Such as figure 2 As shown, the browser client uses the HTTP interface to access the sub-module 1, the mobile APP uses the HTTP interface to access the sub-module 2, and other background services use the RPC (Remote Procedure Call Protocol, remote procedure call protocol) and SOCKET interface to call the sub-module 2.

[0058] There can be many kinds of request ...

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 device for judging whether a system or a system module is blocked or not. By the method and the device, the threading blocking condition of the system or the systemmodule can be simply and effectively judged, the performance of the whole system and each module can be monitored, and judgment can be achieved under the condition of extremely low performance loss.The method comprises the steps of arranging a counter in the system or the system module; performing 1-adding operation on the counter each time when the system module is executed, and performing 1-subtraction operation on the counter if the system module is not blocked; and judging whether the system or the system module is a blocked system or system module if a value of the counter is higher than a threshold value.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for judging whether a system or a system module is blocked. Background technique [0002] Generally, large-scale Internet applications have the characteristics of high concurrency, massive users, and distributed architecture. The system will contain many sub-modules, and many sub-modules will involve the use of various locks, distributed queues, RPC remote calls, and distributed database operations. . Therefore, it is particularly important to quickly determine background performance problems, that is, once the service freezes, such as slow response, timeout, etc., it is necessary to quickly determine which system sub-module has a problem. [0003] In the prior art, a log frame (Apache Log4j, etc.) is used to print the execution time difference of the method, and the problematic module is determined by searching the execution time difference of each module ...

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): G06F11/30
CPCG06F11/302G06F11/3065
Inventor 于淼刘卫程
Owner BEIJING JINGDONG SHANGKE INFORMATION 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