Method and device for memory monitoring

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

Active Publication Date: 2012-02-22
BEIJING ZHIGU TECH SERVICE
View PDF4 Cites 0 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 solve the problem in the prior art that memory leaks cannot be known in a timely and effective manner

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] 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:

[0051] 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.

[0052] 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.

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

Embodiment 2

[0060] 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:

[0061] 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;

[0062] 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 memory monitoring method and device, which monitors the memory usage of entities using memory, stores the memory usage data of the entity to be monitored in a memory usage data storage unit, and stores the memory usage data of the entity to be monitored The data changes with the memory usage of the entity to be monitored, and the method includes: within a monitoring cycle, acquiring the memory usage data of the entity to be monitored from the memory usage data storage unit for multiple times, and storing two consecutive Compare the memory usage data obtained for the second time; if the comparison result obtained each time is that the total amount of memory used by the entity in the latter time is more than the total amount of memory used by the entity in the previous time, it is determined that the entity has a memory leak. Utilizing the method and device provided by the invention can timely discover the imperceptible memory leak problem in the 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
Patent Type & Authority Patents(China)
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