Method and device for monitoring memory

A memory and memory leak technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve the problem of not being able to know the appearance of memory leaks in a timely and effective manner

Active Publication Date: 2009-12-09
BEIJING ZHIGU TECH SERVICE
View PDF0 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0019] The present invention provides a method and device for memory monitoring, which are used to s

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 monitoring memory
  • Method and device for monitoring memory
  • Method and device for monitoring memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Embodiment 1, as Figure 2A As shown, a memory monitoring method is used to monitor the memory usage of the buffer pool. The specific implementation method includes steps:

[0050] Step 2A01, within a monitoring cycle, obtain the memory usage data of the buffer pool to be monitored from the memory usage data storage unit for multiple times, and store the memory usage data of the buffer pool to be monitored in the memory usage data storage unit, said The memory usage data for the buffer pools to be monitored varies with the buffer pool memory usage.

[0051] Step 2A02, comparing the memory usage data of the buffer pool acquired twice in a row, if the comparison result obtained each time is that the latter time is more than the total amount of memory used by the buffer pool in the previous time, then determine the There is a memory leak in the buffer pool.

[0052] In addition, when the total amount of memory used by the buffer pool does not increase all the time, in or...

Embodiment 2

[0059] Example 2, such as image 3 As shown, in the embodiment of the present invention, the memory usage data can be stored in the structure, and the memory usage data is marked with the variable value of the structure, and in this embodiment, the variable value of the structure varies with the total amount of memory used by the entity. increase, the embodiment of the present invention is a method for memory monitoring, which specifically includes steps:

[0060] Step 301, setting object parameters and monitoring parameters through a preset interface, wherein the serial port can be a command-line interface (CLI, command-line interface) interface;

[0061] The object parameter is used to locate the structure variable value indicating the memory usage of the entity in the structure storing memory usage data, and the object parameter specifically includes: the name of the monitored entity (the entity applies for and uses memory) and The buffer pool for which this entity applies...

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 discloses a method and a device for monitoring memory, which are used for monitoring memory usage of an entity using the memory. Memory usage data of the entity to be monitored is saved in a memory cell of memory usage data; and the memory usage data of the entity to be monitored changes along with the memory usage of the entity to be monitored. The method comprises the following steps: acquiring the memory usage data of the entity to be monitored for a plurality of times from the memory cell of the memory usage data and comparing the memory usage data acquired from two consecutive times in a monitoring cycle; and if the total memory usage of the entity of the latter time is always larger than that of the former time in each acquired comparison result, confirming the phenomenon of memory leak in the entity. The method and the device provided by the invention can timely discover the problem of imperceptible memory leak in a system.

Description

technical field [0001] The invention relates to the field of computer network communication, in particular to a memory monitoring method and device. Background technique [0002] At present, no matter how large the memory capacity of computer systems and some network devices is, they are all limited. Therefore, it is a very important issue to effectively use these memories. [0003] The memory management structure commonly used in the prior art is as figure 1 As shown, among them, memory management usually adopts a two-layer management method, including: [0004] The first layer of management: the page allocator 101 cuts the physical memory into kernel memory pages of a certain length, manages the kernel memory pages, and divides the memory in the system into multiple buffer pools for management according to the types of entities applying for memory. [0005] Second layer of management: Slab allocator 102 divides the buffer pool contained in the buffer pool into multiple S...

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/36H04L12/26
Inventor 张明振陈佑建李炳泉
Owner BEIJING ZHIGU TECH SERVICE
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