Server memory analysis method and device and computer readable storage medium
A memory analysis and server technology, used in computing, multi-programming devices, instruments, etc., can solve problems such as server congestion, reduce performance loss, reduce program load, and avoid data competition.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] In the prior art, the usual method of server memory analysis is to firstly intercept the malloc and free of the server program, then use libuwind to collect stack call information, and send it to another consumer process for analysis through a pipeline. For example, code similar to the following:
[0035]
[0036] Among them, each time a process applies for memory, if the OPEN_BACKTRACE switch is turned on, the handle_malloc function will be executed. Among them, the handle_malloc function will get the current call stack and the size of the stack as the key (value) of the statistical data, and record the size of the memory data requested on the stack. In addition, the existing technology also needs to record ptr (Pointerrecord, pointer record) The corresponding relationship with the requested space size, when the server releases the memory, subtract the destructed value as needed.
[0037] However, in the existing server memory analysis method, because the pipeline ...
Embodiment 2
[0088] According to another aspect of the embodiments of the present invention, there is also provided an analysis device for server memory, wherein, Figure 5 is a schematic diagram of a server memory analysis device according to an embodiment of the present invention. Such as Figure 5 As shown, the device includes: a determination module 501 , an acquisition module 503 and an analysis module 505 .
[0089] Wherein, the determination module 501 is configured to respond to the server memory analysis instruction and determine the target shared memory corresponding to the process to be analyzed, wherein the process to be analyzed is selected from multiple processes running in the server, and each process in the multiple processes is respectively Corresponding to at least one shared memory set in the server; the obtaining module 503 is used to obtain the memory usage information pre-stored in the target shared memory; the analysis module 505 is used to analyze the memory usage ...
Embodiment 3
[0103] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the server in the above-mentioned embodiment 1 when running Methods for analyzing memory.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com