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

Method and device for judging resource leakage and predicting resource usage

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: 2017-09-29
HUAWEI TECH CO LTD
View PDF3 Cites 0 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
  • Method and device for judging resource leakage and predicting resource usage
  • Method and device for judging resource leakage and predicting resource usage
  • Method and device for judging resource leakage and predicting resource usage

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

The present invention relates to the field of computer applications, in particular to a method and device for judging program running resource leaks, which are used to solve the problems of easy false positives and false positives and poor versatility in existing methods for detecting program running resource leaks ; It also relates to a method and device for predicting the usage of program running resources, which is used to solve the problem that the prior art cannot predict the usage of program running resources in the process of program running in the future; the method for predicting the usage of program running resources includes: Collect at least one program running resource usage in each program running resource usage cycle; decompose the collected program running resource usage into different resource components; determine the prediction function of the resource component for the data contained in each resource component ; Determining an overall program running resource forecast function according to the determined forecast function of each resource component; predicting the usage of the program running resource based on the determined overall forecast 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
Patent Type & Authority Patents(China)
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products