Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

83 results about "Memory leak detection" patented technology

You can use some techniques in your code to detect memory leak. The most common and most easy way to detect is, define a macro say, DEBUG_NEW and use it, along with predefined macros like __FILE__ and __LINE__ to locate the memory leak in your code.

Method for positioning memory leak

The invention discloses a method for positioning memory leak, which relates to the field of computer science and technology, and comprises the following steps of: initializing a memory use monitoring module, setting an initial memory use rate threshold, and defining a threshold adjustment parameter; the CPU utilization rate and the memory use condition are monitored in real time, historical data are recorded, and a memory use trend model is established. When the CPU utilization rate exceeds the set threshold value, reducing the first preset threshold value, adjusting the second preset threshold value according to the memory use trend, and comprehensively adjusting the memory utilization rate threshold value. And when the memory utilization rate exceeds a first preset threshold value, starting memory leak detection, recording memory allocation and release information by using a hash table, and searching the unreleased memory. And analyzing logs and behavior records of the system before and after memory leak, constructing a causal relationship model, adjusting a memory utilization rate threshold value, and generating a report containing memory leak position and reason analysis thereof. According to the method, the predictability and the accuracy of memory management are better improved, and the self-adaptive capability of the system is enhanced.
Owner:深圳市云希谷科技有限公司

Memory leak detection method and apparatus, electronic device and readable storage medium

The present application belongs to the technical field of terminal devices. Disclosed are a memory leak detection method and apparatus, an electronic device and a readable storage medium. The method comprises: acquiring actual physical memory data of at least one second process periodically reported by a first process, the first process being a process having a ROOT permission, and the at least one second process being a process currently run by an electronic device; and, when it is determined, on the basis of the actual physical memory data of a second process acquired multiple times in succession, that a memory growth trend of the second process meets a preset condition, determining that the second process has memory leak, the second process being any process of the at least one first process.
Owner:ZTE CORP

Component memory leak detection method and device, computer equipment and storage medium

The invention relates to a component memory leak detection method and device, computer equipment and a storage medium. The method comprises the following steps: when a component creation event of a to-be-detected component is detected, generating a first heap snapshot corresponding to the component creation event of the to-be-detected component, and when a component destruction event of the to-be-detected component is detected, generating a second heap snapshot corresponding to the component destruction event of the to-be-detected component; analyzing the first heap snapshot and the second heap snapshot, and determining target structured data; component instance nodes are determined, and an information mapping table between node unique identifiers and node information of the component instance nodes is constructed; determining candidate memory leak components according to the information mapping table; and determining a target memory leak component from the candidate memory leak components according to the component-created document object model and the component-destroyed document object model of the candidate memory leak components. And the identification precision of the component memory leak scene is improved.
Owner:ZHEJIANG BANGSUN TECH CO LTD

Memory leak detection method and device, equipment and medium

The embodiment of the invention provides a memory leak detection method and device, equipment and a medium, which are used for quickly and accurately performing memory leak detection. In the method, aiming at each target application program which is occupying the memory, the size of the memory occupied by each calling thread can be obtained based on identification information of the calling thread which is currently stored in linked list information of the target application program, and the size of the memory occupied by each calling thread can be obtained based on the size of the memory occupied by each calling thread and a preset memory threshold value. According to the method and the device, whether memory leak exists or not is judged, so that whether memory leak exists or not can be detected in a refined manner at a thread level, and compared with the situation that the memory leak cannot be accurately detected in time due to the fact that whether memory leak exists or not is detected from a relatively coarse granularity level of a whole application program and the like, the memory leak can be accurately detected in time; according to the embodiment of the invention, whether memory leak exists or not can be detected in a thread-level refined manner, so that the rapidness, timeliness and accuracy of memory leak detection can be improved.
Owner:NETTRIX INFORMATION IND CO LTD

Memory leak detection method and device, equipment and storage medium

The invention discloses a memory leak detection method and device, equipment and a storage medium, and the method comprises the steps: regularly reading the total memory usage amount at the current moment according to a preset detection frequency, and calculating the memory usage proportion at the current moment according to the total memory usage amount; if the memory use proportion is greater than a proportion threshold value, shooting a heap snapshot at the current moment; obtaining a historical heap snapshot; comparing the heap snapshots at the current moment with historical heap snapshots to identify one or more suspected leakage points; and analyzing the reference relationship of each leakage suspected point to determine each leakage node. According to the method, the macroscopic memory use proportion and the specific microcosmic structure of the heap snapshots are effectively associated, suspected abnormally increased or unreleased objects in the time dimension are accurately captured through comparison information of the heap snapshots, then code roots causing leakage are traced through the reference relation, the leaked nodes are accurately determined, and the leakage efficiency of the heap snapshots is improved. Compared with a manual operation mode in the prior art, efficiency and accuracy are greatly improved.
Owner:创优数字科技(广东)有限公司

Android system memory management optimization method

The Android system memory management optimization method is characterized by comprising the following steps: (1) memory fragment arrangement: (1-1) fragment detection and classification; (1-2) fragment merging; (1-3) rearranging memory blocks; (2) memory leak detection: (2-1) reference chain analysis; (2-2) garbage collection monitoring; (2-3) memory leak repair suggestion; (3) memory allocation optimization: (3-1) memory pool management; (3-2) dynamically adjusting the size of a memory block; (3-3) multiplexing the memory blocks; (4) a memory allocation strategy under multi-task processing: (4-1) task priority evaluation; (4-2) memory sharing; and (4-3) a memory recovery strategy. According to the method, the memory utilization rate of the Android system is improved, memory leakage is reduced, the memory allocation efficiency is improved, and memory allocation under multi-task processing is optimized.
Owner:SHANDONG ARTAPLAY INTELLIGENT TECH CO LTD

Memory leak detection method and device based on Vue framework and medium

The invention discloses a memory leak detection method and device based on a Vue framework and a medium, belongs to the technical field of memory leak detection, and is used for solving the technical problems that an existing memory leak solution cannot accurately identify and position a source of memory leak, cannot provide an effective optimization strategy and is poor in stability and performance of a Vue.js application. The method comprises the following steps: regularly obtaining memory usage data of a Vue application, and carrying out memory usage monitoring on the Vue application based on the memory usage data; when the memory occupancy exceeds a first preset threshold value, performing memory recovery on the memory of the Vue application; performing memory leak detection on the Vue application through a memory analyzer; and when memory leak occurs, recovering the isolated object in the Vue application so as to automatically repair the memory.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Memory leak detection method and device based on KNN and medium

The invention discloses a memory leak detection method and device based on KNN and a medium, belongs to the technical field of intelligent operation and maintenance, and is used for solving the technical problems that an existing memory anomaly detection algorithm is mainly oriented to universal memory faults such as resource bottleneck and insufficient capacity and is not accurate enough in memory leak fault recognition and lagged in fault recognition. The method comprises the following steps: acquiring a memory monitoring index data set of a target system in a preset time period; determining whether any data point is an abnormal point or not based on the distance between any data point in the memory monitoring index data set and other data points; and if the number of the abnormal points in the memory monitoring index data set exceeds a preset number threshold, determining that the target system has a memory leak fault. By means of the method, targeted fault detection on specific fault scenes such as memory leakage is achieved, and when the target system has the memory leakage fault, the fault of memory leakage of the target system can be accurately and timely detected.
Owner:INSPUR GENERSOFT CO LTD

Memory leak detection method and device, electronic equipment and storage medium

The invention discloses a memory leak detection method and device, electronic equipment and a storage medium, and relates to the technical field of big data or other related fields, and the method comprises the steps that in the execution process of a target process, a memory event of the target process is monitored, and a monitoring result is obtained, the memory event is used for indicating the change conditions of the virtual memory and the physical memory; establishing a virtual memory allocation table and a physical memory allocation table based on a monitoring result; based on a preset detection rule, the virtual memory allocation table and the physical memory allocation table are compared to obtain a comparison result, and the comparison result is used for recording R stack identifiers; and taking R call stacks corresponding to the R stack identifiers as suspected leak memories, and generating a memory leak detection result. According to the method and the device, the technical problem that the memory leak cannot be effectively detected when the Java program runs due to the fact that the monitoring and analysis capability on the Java memory object is insufficient in the related technology is solved.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Memory leak detection method and device, equipment and storage medium

The embodiment of the invention provides a memory leak detection method and device, equipment and a storage medium, and relates to the technical field of operating systems and performance tuning. The method comprises the following steps: monitoring memory allocation and release operation of a process by adopting a probe program; collecting memory use information of a stack of the process on memory allocation and release operation; through a collaborative caching mechanism of a kernel mode and a user mode, sharing memory use information to the user mode, and analyzing the memory use information in the user mode to obtain a comprehensive hotspot score representing a memory occupation growth trend of a stack; and determining whether the stack has memory leak according to the comprehensive hotspot score. Based on the method, whether the memory leaks or not can be accurately detected under the condition of low performance overhead.
Owner:ECARX (HUBEI) TECHCO LTD

Memory leak detection method, device, computer equipment and storage medium

The present invention relates to the field of memory leak detection technology, and specifically to a memory leak detection method, device, computer equipment and storage medium. Receive a memory processing instruction input by a user; process a target memory to be processed according to the memory processing instruction; obtain the number of processing times of a target memory block corresponding to the target memory to be processed within a preset historical time; detect whether a memory leak occurs in the target memory block according to the number of processing times of the target memory block corresponding to the target memory to be processed. It can simply and quickly determine whether a memory leak occurs in the target memory to be processed, and ensure the accuracy of the determined result. The efficiency of confirming whether a target memory leak occurs is improved, and the applicability is strong.
Owner:SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Periodic memory leak detection method, device and system

The invention provides a detection method, device and system applied to periodic memory leak, the method is applied to first electronic equipment, a full pointer list is generated by counting memory applications, and the full pointer list comprises a first feature and a second feature. And dividing the records with the same second feature into sub pointer lists, and further determining a target pointer list set of which the timestamps are regularly increased. And transmitting the target pointer list and the memory data through a communication protocol with the second electronic equipment so as to identify a memory leak pointer value. According to the method, the first electronic equipment can effectively screen and transmit the target pointer list and the memory data to the second electronic equipment, the pointer list with the timestamps increasing regularly is analyzed in a centralized mode, the timestamps increasing regularly are obvious marks of memory leakage in a period, the accuracy and efficiency of detection are improved, and the detection efficiency is improved. And the specific analysis part is performed at the second electronic equipment end, so that the operation pressure of the first electronic equipment is reduced, and the operation efficiency of the first electronic equipment is guaranteed.
Owner:HANGZHOU TUYA INFORMATION TECH CO LTD

Memory allocation system with memory monitoring and early warning system

The invention discloses a memory allocation system with a memory monitoring and early warning system, and relates to the technical field of memory management. Comprising a memory pool management module, a memory pool debugging module, a memory monitoring and early warning module, a memory leak detection module, a dual release detection module, a memory usage amount statistics module and a wild pointer positioning module. By integrating the memory pool management module, the debugging module and the monitoring and early warning module, memory management in the embedded system is optimized, the system can dynamically allocate memories, record operation, monitor abnormal use of the memories in real time and position the problems of memory leakage, wild pointers and the like, the safety and efficiency of memory use are improved, the positioning and solving of the problems are accelerated, and the system is suitable for large-scale popularization and application. And the system stability is enhanced.
Owner:GUANGZHOU SENYANG ELECTRONIC TECH CO LTD

Periodic memory leak detection method, apparatus and system

The application provides a detection method, device and system applied to periodic memory leakage, the method is applied to a first electronic device, a full pointer list is generated by counting memory application, containing a first feature and a second feature. Records with the same second feature are divided into sub-pointer lists, and then a target pointer list set with regularly increasing time stamps is determined. Through a communication protocol with a second electronic device, the target pointer list and memory data are transmitted to identify memory leakage pointer values. The first electronic device can effectively screen and transmit the target pointer list and memory data to the second electronic device, the method concentrates on analyzing the pointer list with regularly increasing time stamps, the regularly increasing time stamps are obvious signs of periodic memory leakage, the accuracy and efficiency of detection are improved, and specific analysis is performed on the second electronic device side, thereby reducing the operation pressure of the first electronic device and ensuring the operation efficiency of the first electronic device.
Owner:HANGZHOU TUYA INFORMATION TECH CO LTD

Automatic memory leak detection

Automatic memory leak detection is presented herein. An example method comprises, receiving, into a data slot of a defined data structure, a flow of memory usage data sent by a resource monitoring process operational on the system, in response to determining a time value exceeding a defined threshold time value, closing the data slot, based on the memory usage data included in the data slot, executing a trend analysis process using the memory usage data as an input to the trend analysis process, and in response to the trend analysis process determining a trend associated with the memory usage data, transmitting notification data representing the trend and recommendation data representing a suggestion to reverse the trend to a user equipment.
Owner:DELL PROD LP

Memory leak detection method, electronic equipment and storage medium

The embodiment of the invention provides a memory leak detection method, electronic equipment and a storage medium, and relates to the technical field of memory management, the method comprises the following steps: obtaining a to-be-detected source code; traversing the to-be-detected source code, and determining a target message processing class in the to-be-detected source code; for each target message processing class, determining a target message processing object corresponding to the target message processing class; determining the reference count of each target message processing object based on the calling relationship of each target message processing object; the reference count of one target message processing object represents the number of times that the target message processing object is referenced; based on the reference count of each target message processing object, generating a memory leak detection result; the detection result comprises the message processing object with the memory leak, and the accuracy of memory leak detection can be improved.
Owner:HONOR DEVICE CO LTD

Memory leak detection method, electronic device and storage medium

The present application discloses a memory leak detection method, an electronic device and a storage medium, which relate to the field of memory management technology and are used to provide a memory leak detection solution to ensure the stability and security of memory management. The method comprises: in response to the memory of a Java heap being greater than a first memory threshold, based on a target subprocess in an application process, obtaining a Java object reference relationship of the Java heap; based on the Java object reference relationship, determining at least one Java object in the Java heap whose memory is in a running state; and in the at least one Java object, determining that a Java object that meets a memory exception condition is a Java object with a memory leak.
Owner:HONOR DEVICE CO LTD

Method, device and equipment for intelligently detecting gateway memory leak and medium

The invention provides a method, device and equipment for intelligently detecting gateway memory leak and a medium, and the method comprises the steps: deploying a lightweight AI prediction model at a main gateway, and carrying out the online learning of a memory leak mode and real-time reasoning; the slave gateway collects memory data, preprocesses the memory data, generates a memory change trend vector by adopting a dynamic sliding window, and transmits the memory change trend vector to the master gateway; the main gateway analyzes the memory change trend vector transmitted by the slave device in real time through an AI prediction model, identifies a potential leakage mode of the memory change trend vector, and performs graded early warning on an identification result; constructing a lightweight graph neural network to analyze a memory dependency relationship, evaluating a repair measure influence range, and dynamically selecting an optimal repair strategy for equipment needing to be repaired according to a historical repair effect in combination with a reinforcement learning model; and regularly carrying out data statistics and generating a whole-network visual predictive report. According to the invention, memory leak detection, classified statistics and intelligent alarm of the master / slave gateway can be realized, and the network stability is improved.
Owner:FUJIAN XINGWANG INTELLIGENT SOFTWARE CO LTD

A method for locating memory leaks

ActiveCN119149285BResource allocationHardware monitoringMemory profilingTerm memory
The present invention discloses a method for locating memory leaks, which relates to the field of computer science and technology. The method includes initializing a memory usage monitoring module, setting an initial memory usage rate threshold, and defining a threshold adjustment parameter. It monitors the CPU utilization rate and memory usage in real time, records historical data, and establishes a memory usage trend model. When the CPU utilization rate exceeds the set threshold, it reduces the first preset threshold and adjusts the second preset threshold according to the memory usage trend, comprehensively adjusting the memory usage rate threshold. When the memory usage rate exceeds the first preset threshold, it starts memory leak detection, uses a hash table to record memory allocation and release information, and searches for unreleased memory. It analyzes the system logs and behavior records before and after the memory leak, constructs a causal relationship model, adjusts the memory usage rate threshold, and generates a report containing the location of the memory leak and its cause analysis. The present invention better improves the predictability and accuracy of memory management and enhances the adaptive ability of the system.
Owner:深圳市云希谷科技有限公司

Interprocess memory leak detection method and system based on high-order function abstract

PendingCN118535467AImprove leak detection efficiencyAvoid the problem of low analysis efficiencySoftware testing/debuggingControl flowProcess memory
The invention discloses an interprocess memory leak detection method and system based on a high-order function abstract, and belongs to the field of functional programming and program analysis. The detection method comprises the following steps: generating a function call graph and a control flow graph of a to-be-detected program, determining a function analysis sequence, and constructing a set used in an analysis process; taking out a function according to the function analysis sequence, traversing a control flow diagram of the function, analyzing statements related to memory operation behaviors in the control flow diagram, and generating a function abstract; for a function call statement, information of actual parameters at a call point is substituted into a function abstract of a called function, then an instantiated abstract result is transmitted back to the call point according to the corresponding relation between the formal parameters and the actual parameters, the call function continues to be analyzed according to the instantiated information, and interprocess analysis is conducted; if the analysis is not finished, the analysis is continued; and if all analysis is completed, outputting a memory leak defect detection report.
Owner:NANJING UNIV OF POSTS & TELECOMM

Automatic memory leak detection

Automatic memory leak detection is presented herein. An example method comprises, receiving, into a data slot of a defined data structure, a flow of memory usage data sent by a resource monitoring process operational on the system, in response to determining a time value exceeding a defined threshold time value, closing the data slot, based on the memory usage data included in the data slot, executing a trend analysis process using the memory usage data as an input to the trend analysis process, and in response to the trend analysis process determining a trend associated with the memory usage data, transmitting notification data representing the trend and recommendation data representing a suggestion to reverse the trend to a user equipment.
Owner:DELL PROD LP

Memory leak detection method and electronic device

The present application provides a memory leak detection method and an electronic device, the method comprising: a DSP in an electronic device runs one or more processes, wherein the one or more processes include a first process. An AP in the electronic device sends a memory leak detection instruction to the DSP. When the DSP receives the memory leak detection instruction, the DSP obtains the memory occupancy information of the first process. When the DSP determines that a memory leak occurs in the first process based on the memory occupancy information of the first process, the DSP sends a first indication message to the AP, or the DSP performs a first operation. When the AP receives the first indication message, the AP performs the first operation. The first indication message is used to indicate that a memory leak occurs in the first process, and the first operation includes one or more of the following: restarting the first process, restarting the DSP, and triggering the DSP to capture the memory application information log of the first process from the DSP.
Owner:HONOR DEVICE CO LTD

Memory leak detection method and device, computer equipment and storage medium

The invention relates to the technical field of memory leak detection, in particular to a memory leak detection method and device, computer equipment and a storage medium. Receiving a memory processing instruction input by a user; according to the memory processing instruction, processing the to-be-processed target memory; obtaining the processing frequency of a target memory block corresponding to the to-be-processed target memory within a preset historical time; and according to the processing times of the target memory block corresponding to the to-be-processed target memory, detecting whether the target memory block has memory leakage or not. Whether memory leakage occurs in the target memory to be processed or not can be simply and quickly determined, and the accuracy of the determined result is ensured. The efficiency of determining whether the target memory leaks or not is improved, and the applicability is high.
Owner:SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD

Memory leak detection method and device, equipment, medium and computer program product

The invention provides a memory leak detection method, device and equipment, a medium and a computer program product, and relates to the technical field of computers, in particular to the field of cloud computing. According to the specific implementation scheme, at least one second memory page which is not counted by an operating system is obtained from distributed first memory pages, and the second memory page is a memory page applied by a process for calling a drive program; memory allocation information corresponding to any second memory page is obtained, wherein the memory allocation information is used for indicating a calling path of the driving program; determining the memory occupation amount of any calling path based on the memory allocation information; and performing memory leak detection on the operating system based on the memory occupancy of any calling path.
Owner:BEIJING BAIDU NETCOM SCI & TECH CO LTD

Memory leak detection method and device

The present invention discloses a memory leak detection method and device, relating to the field of computer technology. A specific implementation of the method includes: upon entering a page to be detected in an application, initializing a view controller and at least one view of the page to be detected, and storing characteristic information of the view controller and the view in a pre-established weak reference set; after exiting the page to be detected, determining whether a memory leak has occurred in the page to be detected based on the information currently stored in the weak reference set. This implementation can quickly determine whether a memory leak has occurred in the page to be detected in an application.
Owner:BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1

Memory leak detection and analysis method, system, equipment and medium

The invention provides a memory leak detection and analysis method, system and device and a medium, and belongs to the technical field of memory detection. Memory use data based on an application program is obtained and stored; based on a memory analysis module, analyzing the memory use data, and identifying a memory leak position and memory leak data; key information of the memory leak data is extracted, and a memory leak data report is generated; and displaying the memory usage amount and the leakage mode through a graphical interface. According to the method, the existing memory leak detection technology is highly fused, and the advanced visual analysis technology is adopted, so that the detection accuracy and efficiency are improved, the security of the system is enhanced, and an efficient, convenient and reliable memory leak solution is provided for a user.
Owner:SHANDONG CHAOYUE DATA CONTROL ELECTRONICS CO LTD

Memory leakage processing method and device, storage medium and electronic equipment

Embodiments of the present application disclose a memory leakage processing method and device, a storage medium and an electronic device. The method comprises: collecting all objects held by a view controller when the view controller disappears, determining target objects with memory leakage from all the objects, and sending a target message indicating that the target objects have memory leakage to a server based on the target objects. The scheme expands the detection range of memory leakage and improves the detection coverage, can more comprehensively detect objects with memory leakage, and uploads the collected memory leakage information to the server and distributes it to relevant personnel for processing, avoiding the impact of memory leakage detection in the testing stage.
Owner:SHENZHEN YISHIHUOLALA TECH CO LTD

Memory leak detection method and device, storage medium and electronic device

The invention provides a memory leak detection method and device, a storage medium and an electronic device.The method comprises the steps that index data of a process used memory in a target network element is collected locally according to a first preset period, and the index data is used for representing the memory occupancy amount of the corresponding process; the index data is stored in a time sequence database of the target network element, and the time sequence database is used for storing index time sequence data of all processes in the target network element in a plurality of time sequence periods; querying index time sequence data in the time sequence database according to a second preset period; and adopting a pre-trained deep learning model to perform memory leak detection on the target network element through the index time sequence data. Through the embodiment of the invention, the technical problems of large resource consumption and large time delay of memory leak detection in related technologies are solved, the memory leak of a specific module can be detected besides the process memory leak, and a leak root cause can be conveniently positioned in time.
Owner:ZTE CORP