Methods and devices for judging resource leakage and predicting resource use conditions

A resource leakage and resource technology, applied in error detection/correction, software testing/debugging, reliability/availability analysis, etc. The effect of low system performance consumption and strong versatility

Inactive Publication Date: 2014-12-03
HUAWEI TECH CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Embodiments of the present invention provide a method and device for judging program running resource leaks, which are used to solve the problems of false positives and false positives, high consumption of system performance, and poor versatility in existing methods for detecting program running resource leaks The problem

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
  • Methods and devices for judging resource leakage and predicting resource use conditions
  • Methods and devices for judging resource leakage and predicting resource use conditions
  • Methods and devices for judging resource leakage and predicting resource use conditions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0071] In the embodiment of the present invention, by collecting at least one program running resource usage in each program running resource usage cycle, for any two program running resource usage cycles, determine the program running resource usage collected each time in the latter cycle, and According to the difference between the total amount of program running resource usage collected in the previous cycle, whether there is a program running resource leak is determined based on the difference between the total number of differences greater than 0 and the total number of differences less than 0 among the determined differences. The embodiment of the present invention can realize the analysis of the program operation resource usage of different program operation resource usage periods in the program operation process, so that the program operation resource usage in different stages of the program operation can be obtained, and it can be more accurately judged whether there is...

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

A method and device for determining resources leakage during program execution, relating to the field of computer application, used to solve the problem of erroneous reports, missing reports, and lack of universality in existing methods for detecting resource leakage during program execution. The present invention also relates to a method and device for predicting the resource usage state during program execution, and is used to solve the problem of the lack of capability to predict future resource usage state during program execution. The method for predicting resource usage state during program execution comprises: collecting at least once the resource usage during program execution in each resource usage cycle during program execution; dividing the collected resource usage during program execution into different resource components; for data included in each resource component, determining the prediction function for the resource component; determining the comprehensive program execution resource prediction function according to the determined prediction function for each resource component; predicting the resource usage state during program execution according to the determined comprehensive prediction function.

Description

technical field [0001] The present invention relates to the field of computer applications, in particular to a method and device for judging the leakage of program running resources, and a method and device for predicting the use of program running resources. Background technique [0002] Program running resources, such as memory, file handles, semaphores, database connection pools, thread pools, etc., are the key resources needed when the program is running. During the running process, the program makes an application when it needs to use program running resources, and releases the occupied program running resources in time after use; if the occupied program running resources are not released in time, the problem of program running resource leakage will occur. The following uses a memory leak as an example to describe the problem of program running resource leaks in detail. [0003] A memory leak means that due to design or coding problems, the program does not release the...

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): G06F11/36
CPCG06F11/008G06F11/3037G06F11/3409G06F2201/81G06F9/5061G06F2209/5019G06F9/5055
Inventor 李静辉龚学文袁健清
Owner HUAWEI TECH 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