Supercharge Your Innovation With Domain-Expert AI Agents!

Resource object leak detection method and device

A resource object and leak detection technology, which is applied in the field of resource object leak detection, can solve the problems of inability to detect leaks, resource object leaks, etc., and achieve the effect of accurate resource leak detection

Active Publication Date: 2020-07-03
北京宝兰德软件股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a resource object leak detection method and device, which are used to solve the problem in the prior art that leak detection cannot be performed when the resource object is recycled and does not exist

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
  • Resource object leak detection method and device
  • Resource object leak detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0024] figure 1 A resource object leak detection method provided by an embodiment of the present invention is shown, including:

[0025] S11. Scan the queue of weakly referenced objects, determine the target weakly referenced object, and analyze the target weakly referenced object to obtain corresponding metadata information;

[0026] S12. If the status information in the metadata information is not closed, determine the location information of the corresponding target resource object according to the metadata information, and determine the leaked resource object according to the location information.

[0027] Regarding step S11 and step S12, it should be noted that, in ...

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 embodiment of the present invention provides a resource object leakage detection method and device. The method comprises the steps of scanning the queue of weakly referenced objects, identifying the target weak reference object, parsing the target weak reference object to obtain the corresponding metadata information, if the state information in the metadata information is an unclosed state, determining the position information of the corresponding target resource object according to the metadata information, determining the leaked resource object according to the position information, andfinding the resource object which has not been recovered successfully through the weak reference object, so that the resource leak detection is accurate.

Description

technical field [0001] The invention relates to the technical field of data services, in particular to a resource object leakage detection method and device. Background technique [0002] In many business systems, the problem of slow response or even downtime of the business system often occurs because resource objects (such as database connection objects) are not closed. Once a fault occurs, the location is extremely complicated, which seriously affects the stable operation of the production system. Java technology plays a pivotal role in many web business systems, how to quickly locate the location of resource leak objects in the Java virtual machine has become a very challenging problem. [0003] The difficulty of this problem lies in how to judge whether the resource object is closed after garbage collection, that is, how to judge whether the resource object has executed the close method after the resource object is recycled. After the object is recycled in the Java vi...

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): G06F9/46
CPCG06F9/461G06F9/466
Inventor 易存道
Owner 北京宝兰德软件股份有限公司
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