Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Memory allocation monitoring method and apparatus

A memory allocation and memory technology, applied in the computer field, can solve problems such as the inability to monitor memory usage in real time

Inactive Publication Date: 2016-01-13
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a memory allocation monitoring method and device to solve the problem that the memory usage cannot be monitored in real time during the running of the program

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
  • Memory allocation monitoring method and apparatus
  • Memory allocation monitoring method and apparatus
  • Memory allocation monitoring method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0033] figure 1 A schematic flow diagram of an embodiment of the monitoring method for memory allocation of the present invention, such as figure 1 As shown, the monitoring method of memory allocation includes:

[0034] Step 101, acquire file information and memory information.

[0035] In this embodiment, the file information includes the...

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 provides a memory allocation monitoring method and apparatus. The method comprises: acquiring file information and memory information, wherein the file information comprises a file name and a file line number that trigger allocation of memory, and the memory information comprises memory information allocated for executing a file indicated by the file line number, and the file line number is a line number of a file indicated by the file name; and according to the file information and the memory information, determining a total amount of memory occupied by the file indicated by the file line number. Real-time monitoring of a memory occupation amount in a program running process is implemented, so that memory leak is avoided, and thus a probability of system crash is reduced.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for monitoring memory allocation. Background technique [0002] During the running of the program, the system may frequently crash or fail to work normally, that is, the system crashes. [0003] There are many reasons for causing the system to crash, for example, there is a virus in the system, or there is a bug in a running program, or there is a memory leak. Among them, memory leak means that when the program is running, the system continuously allocates memory for the running program, and saves the pointer to the memory in a data storage, and does not release the memory block pointed to by the pointer until the program exits. This pointer is the pointer stored in the data store. [0004] When the system is running the program, if the memory usage continues to increase, it may cause a memory leak, resulting in a system crash. However, those skilled in the art have...

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/30
Inventor 宗栋瑞郭美思
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
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
Eureka Blog
Learn More
PatSnap group products