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

40 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.

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 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:创优数字科技(广东)有限公司

Memory leak detection method and device, equipment and storage medium

PendingCN121958140AReduce switching delayReduce data call frequencyInterprogram communicationMemory adressing/allocation/relocationOperational systemMemory footprint
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

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

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

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 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

Android MTK platform memory leak detection method combined with Python data analysis

The invention discloses an Android MTK platform memory leak detection method combined with Python data analysis, and relates to the technical field of Android MTK platform memory leak analysis and troubleshooting, and the method comprises the following steps: S1, system log classification; s2, sorting memory occupation information; s3, outputting a memory occupation broken line graph of each application process; and S4, memory leak judgment. According to the Android MTK platform memory leak detection method combined with Python data analysis, the memory problem of a system process is analyzed very visually, the limitation that only developers can analyze memory leak is broken through, testers execute according to steps, application processes with system memory leak can also be distinguished, the method can be used for system stability testing, and the test efficiency is improved. Data analysis is carried out from the overall dimension of the system, and the limitation that a previous scheme can only aim at a single application process is broken through.
Owner:SHENZHEN EMDOOR DIGITAL TECH

A memory leak detection method and an electronic device

The embodiment of the application provides a memory leakage detection method and electronic equipment, relates to the terminal technical field, and can accurately detect the memory leakage problem of the application in the electronic equipment. The electronic equipment comprises a first process and a second process, and the method comprises the following steps: acquiring first memory information corresponding to the first process and second memory information corresponding to the second process; determining that the first process meets a preset condition and the second process does not meet the preset condition according to the first memory information corresponding to the first process and the second memory information corresponding to the second process; acquiring third memory information corresponding to the first process; and judging whether the first process has memory leakage or not according to the third memory information corresponding to the first process.
Owner:HONOR DEVICE CO LTD

Cache component pointer analysis method based on static analysis

The invention discloses a method for analyzing a pointer of a swan Mongolia ArkTS cache component based on static analysis, which comprises the following steps of: screening AppStorage-related APIs (Application Program Interface) through three-address code semantic modeling, constructing a bidirectional synchronous strong connected component by adopting a reverse backflow edge, and blocking unidirectional synchronous reverse propagation based on freezing constraint, so as to achieve the purpose of analyzing the pointer of the swan Mongolia ArkTS cache component. And realizing cross-component data stream accurate tracking by combining a dynamic pointer assignment graph and an accessibility algorithm. According to the method, the false alarm rate of pointer analysis is reduced from 20% to 5%, the accuracy rate of memory leak detection reaches 98%, the analysis efficiency is improved by 40%-60%, the method is compatible with an OpenHarmony tool chain, and the problems of memory security and optimization under an ArkTS response type synchronization mechanism are solved.
Owner:BEIHANG UNIV

Memory leak detection method and device

The embodiment of the invention provides a memory leak detection method and device, and relates to the technical field of computers.The method comprises the steps that memory data of a plurality of target functions in a target application program are obtained through a pre-injected memory probe, the memory probe is injected into the target function in a compiling stage or a linking stage of the target application program; determining memory leak data of the target function based on the memory data; and under the condition that the memory leak data meets a preset leak condition, executing a preset alarm operation. According to the technical scheme provided by the embodiment of the invention, function-level memory leak monitoring can be realized, and memory leak detection is effectively realized.
Owner:BEIJING YUWEI SEMICONDUCTOR TECHNOLOGY CO LTD

Data processing task scheduling method and device, electronic equipment and medium

The embodiment of the invention discloses a data processing task scheduling method and device, electronic equipment and a medium. A specific embodiment of the method comprises the steps of obtaining a memory capacity set required by task operation and memory capacity of an application server; generating the current required memory capacity; determining a task execution mode; performing memory scheduling on the current data processing task and the target data processing task set to obtain task scheduling information; executing the current data processing task and the target data processing task set to obtain task execution information; in response to determining that the task execution information represents execution abnormity, performing memory leak detection on the task execution information to obtain a task memory detection result; and according to a task memory detection result, performing memory resource recovery on required memories corresponding to the current data processing task and the target data processing task set. According to the embodiment, smooth execution of the data processing task can be improved, waste of memory resources is reduced, and the stability of a system for executing the data processing task is improved.
Owner:GUYUN TECH GUANGZHOU CO LTD

Memory leak detection method and system

The embodiment of the invention provides a memory leak detection method and system, and the method comprises the steps: deploying a data collection function on a tested embedded device, deploying a data processing and analysis function on a high-performance test machine, and separating data collection and data analysis, only the simplest data acquisition function is reserved on the tested embedded equipment, so that the resource overhead is reduced, the embedded equipment can also be used, operation data (the size of a memory block, a self-increasing sequence number and the like) is transmitted by utilizing a lightweight data packet, real-time monitoring is ensured, the resource demand on the embedded equipment is remarkably reduced, and the system performance is improved. The problem of memory leak detection in an embedded environment is solved.
Owner:ZHEJIANG DAHUA TECH CO LTD

Memory management method and device, equipment, medium and product

The embodiment of the invention provides a memory management method and device, equipment, a medium and a product, and the method comprises the steps: determining usable information of a usable memory when detecting that a memory leak detection condition is met; when the available information meets a memory release condition, acquiring memory data stored in the releasable memory file; and determining releasable first data in the releasable memory file according to the determined memory release amount and pointer reference information corresponding to each memory address in the releasable memory file. According to the technical scheme provided by the embodiment of the invention, when the usable information meets the memory release condition, the releasable first data is determined from the releasable memory file according to the memory release amount and the pointer reference information corresponding to the memory address, and the first release memory corresponding to the first data is released; memory occupation caused by memory leakage can be quickly relieved, memory overflow is prevented, and the effects of improving the release efficiency and the overall performance and stability of the system are achieved.
Owner:CHINA MOBILE GRP GANSU CO LTD +1

Memory leak detection method and device and computer readable storage medium

The invention discloses a memory leak detection method and device and a computer readable storage medium. The method comprises the following steps: acquiring process memory information; predicting based on the process memory information to obtain a memory predicted value; and determining a memory leak result based on the memory predicted value. By adopting the method provided by the invention, early warning can be performed before serious consequences are caused by memory leak, and the timeliness of memory leak detection is improved.
Owner:SHENZHEN TCL NEW-TECH CO LTD

Bytecode enhancement-based Java memory leak detection method and system

The invention relates to a Java memory leak detection method and system based on bytecode enhancement, and belongs to the technical field of memory leak detection.The method comprises the steps that in a Java application, creation of objects of a specified class is monitored in a non-intrusive mode, life cycle information of the monitored objects is recorded based on the weak reference technology, and original statistical data is generated; in an analysis service independent of a Java application, regularly obtaining original statistical data, and carrying out multi-dimensional correlation analysis on the original statistical data; and according to the multi-dimensional correlation analysis result, performing fusion to judge whether memory leak occurs, and according to different preset risk conditions, triggering to output corresponding alarm information when any risk condition is met, so that an administrator can know the alarm information. The method and the device have the advantages that the memory leak source can be accurately and automatically positioned in the early stage on the premise of low overhead and no influence on online business service.
Owner:TONGCHENG NETWORK TECH CO LTD

Metadata-based memory leak detection method, system, device and storage medium

The application provides a metadata-based memory vulnerability detection method and system, an electronic device, and a computer readable storage medium. The metadata-based memory vulnerability detection method comprises: dividing a program virtual address into an Unusable item, an ID item, and an offset item arranged in turn from high bits to low bits; during the running of a target program, maintaining metadata, and loading corresponding metadata according to an ID value contained in a target address for an instruction involving a memory access operation; and performing memory vulnerability detection according to a timestamp corresponding to the offset value and the ID in the metadata and the target address. According to the embodiments of the application, comprehensive, cross-platform, and highly scalable memory vulnerability detection can be performed.
Owner:BEIJING YUAN NIAO TECH CO LTD

Memory leak detection method, electronic equipment, storage medium and program product

The embodiment of the invention provides a memory leak detection method, electronic equipment, a storage medium and a program product, and relates to the technical field of cloud computing, the method comprises the following steps: utilizing a first entry tracking probe inserted in a memory allocation application interface and a first return tracking probe inserted in a memory allocation return interface, collecting parameter information of a memory allocation event initiated by each process, and writing the collected information into a memory state monitoring table; collecting parameter information of memory release events initiated by each process by using a second entry tracking probe inserted in a memory release application interface and a second return tracking probe inserted in a memory release return interface, and writing the collected information into a memory state monitoring table; identifying suspicious processes from the processes according to the information in the memory state monitoring table; according to the memory application condition of each function call stack of the suspicious process, identifying the suspicious call stack from each function call stack; and positioning a memory leak position in the source code corresponding to the suspicious call stack.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Data processing method and device, equipment, storage medium and product

The invention provides a data processing method and device, equipment, a storage medium and a product, and relates to the technical field of computers. The method comprises the steps that memory leak information sets corresponding to multiple terminal devices are determined, memory leak information is determined according to detection information obtained when the corresponding terminal devices conduct memory leak detection in the process of running a preset application program, and the memory leak information comprises a target stack applying for a target leak memory segment; and screening out a target dynamic library corresponding to the target stack from the dynamic libraries contained in the target stack, and carrying out aggregation processing on the memory leak information of the target stack corresponding to the same target dynamic library to obtain an aggregation result sent to the target equipment for display. By adopting the technical scheme, the analysis processing efficiency for the memory leak detection result can be improved.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

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

The embodiment of the invention provides a memory leak determination method and device, electronic equipment and a storage medium. The method comprises the steps that when it is detected that a target condition in a memory leak determination condition set is met, a current monitoring snapshot corresponding to information to be monitored at the current moment is determined; wherein the to-be-monitored information comprises a pre-subscribed monitoring event type; a historical monitoring snapshot corresponding to the target condition is called; wherein the historical monitoring snapshot corresponds to the to-be-monitored information; on the basis of the current monitoring snapshot and the historical monitoring snapshot, generating a leakage prompt event on the basis of the leaked target monitoring information under the condition that the existence of memory leakage is determined; and displaying the leakage prompt event in the target page. According to the technical scheme provided by the embodiment of the invention, the effect of improving the efficiency and accuracy of memory leak detection is achieved while the memory leak detection cost is reduced.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Memory leak detection method and system for ION equipment in Android system and medium

The invention relates to the technical field of operating systems, in particular to a method and system for detecting memory leak of ION equipment in an Android system and a readable storage medium. The method comprises the following steps: S1, performing coarse-grained analysis on memory leakage of the ION equipment; s2, constructing an ION equipment memory information structured model based on a kernel debugging node; s3, source code replacement: replacing all system calls related to the file in the source code with packaged system calls; wherein when the packaged system call finishes the work of the common system call, the call point number of the packaged system call is recorded; s4, collecting operation information; and S5, analyzing the memory leak of the ION equipment. Therefore, the memory leak of the ION equipment exclusive to the Android AOSP can be found.
Owner:HUNAN UNIV

System for detecting memory leak of linux process and alarm method

The invention relates to the technical field of memory leak detection, in particular to a system for detecting memory leak of a linux process and an alarm method. The method comprises the following steps: analyzing a configuration file of real-time monitoring equipment to obtain monitoring configuration data; screening the process list based on the monitoring mode to obtain a target process PID set; reading a corresponding / proc / PID / status file for each PID in the target process PID set, and analyzing the corresponding / proc / PID / status file to form process state data; and updating a memory information detail table and a process information table of the real-time monitoring equipment based on the process state data to obtain a process information record set. According to the method, the process-level memory state is analyzed at low overhead, so that accurate positioning, trend analysis and visual alarm of the Linux memory leak process are realized, and the stability and reliability of the system are improved.
Owner:SHENZHEN TONGKANG CHUANGZHI TECH CO LTD

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

The invention provides a memory leak detection method and device, electronic equipment and a storage medium, and belongs to the technical field of automobiles, the method comprises the steps that a memory data file is acquired, and the memory data file comprises multiple pieces of memory use data of any one of multiple processes of the electronic equipment, the multiple pieces of memory use data of the same process correspond to different data acquisition periods; based on memory usage data corresponding to each process in different periods in the memory data file, determining at least one target process with memory abnormality in the plurality of processes; and performing memory leak detection on the at least one target process to determine the process with memory leak. By means of the scheme, whether the process has the memory leak or not can be judged by calling the memory use data in the memory data file in the process of running the process, the process with the memory leak can be captured in time without waiting for system running faults or system running ending, and user experience is optimized.
Owner:NIO TECH ANHUI CO LTD

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

The invention discloses a memory leak detection method, device and equipment, a computer medium and a product, which are applied to the technical field of computer software, and the method comprises the following steps: obtaining a source code of a to-be-detected application program, a plurality of continuous memory slices in a preset time period when the source code runs, and a recovery log corresponding to each memory slice; extracting static features of a to-be-tested object from the source code; the to-be-tested object is an object existing in the source code; extracting dynamic operation characteristics of each to-be-tested object and various object quantity change characteristics of the source code from the plurality of memory slices and the plurality of recovery logs; inputting the quantity change characteristics of the various objects of the source code and the static characteristics and the dynamic operation characteristics of the to-be-detected objects into a trained detection model, and outputting the probability that the to-be-detected objects have memory leaks by adopting the trained detection model; according to the method and the device, the memory leak in the Java application program can be accurately detected.
Owner:CHINA CONSTRUCTION BANK +1

Acoustic vibration detection method and program product for server memory leaks

This application discloses an acoustic vibration detection method and program product for server memory leaks, relating to the field of memory leak detection technology. The method includes acquiring at least one acoustic vibration signal generated by the target server during operation and constructing a frequency domain energy density distribution matrix to calculate the spectral change rate characteristic value of the target server; obtaining the current memory state information of the target server to construct a memory state vector; concatenating the spectral change rate characteristic value and the memory state vector to generate a multimodal fusion feature vector, which is then input into a pre-trained neural network model to output the probability value of a memory leak event on the target server and its corresponding location. This solves the technical problems of traditional memory leak detection methods, which struggle to accurately locate the leak source and are prone to false alarms, increasing the workload of maintenance personnel. It achieves the technical effect of comprehensively identifying server memory leak events and accurately locating their positions.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD

A memory allocation system with memory monitoring and early warning system

The present invention discloses a memory allocation system with a memory monitoring and early warning system, relating to the field of memory management technology. The system comprises a memory pool management module, a memory pool debugging module, a memory monitoring and early warning module, a memory leak detection module, a double-free detection module, a memory usage statistics module, and a stray pointer location module. By integrating the memory pool management, debugging, and monitoring and early warning modules, the present invention optimizes memory management in embedded systems. The system can dynamically allocate memory, record operations, monitor memory usage anomalies in real time, and locate problems such as memory leaks and stray pointers, thereby improving the security and efficiency of memory usage, accelerating problem location and resolution, and enhancing system stability.
Owner:GUANGZHOU SENYANG ELECTRONIC TECH CO LTD

A memory leak monitoring method, a memory leak detection method and corresponding apparatuses

The application provides a memory leakage monitoring method, a memory leakage detection method and corresponding devices, the method comprising: when a program to be detected calls a memory monitoring dynamic library through a preloading mechanism, intercepting memory operation information of the program to be detected, memory allocation functions and memory release functions in the memory monitoring dynamic library being rewritten; and sending the memory operation information of the program to be detected to a server. In the implementation process, the memory operation information of the program to be detected is intercepted when the program to be detected calls the memory monitoring dynamic library through the preloading mechanism, and the memory operation information of the program to be detected is sent to the server, thereby avoiding complex processing operations such as storage, query, retrieval and symbol analysis on the terminal device, and thereby greatly reducing the influence on the execution of the program to be detected.
Owner:BEIJING TOPSEC NETWORK SECURITY TECH +2

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

Embodiments of the present disclosure provide a memory leak detection method and apparatus, an electronic device, and a storage medium. The method includes: obtaining a memory leak detection instruction for a first application, and generating a running instruction for the first application based on the memory leak detection instruction randomly; triggering the first application to run based on the running instruction, and obtaining running data of the first application; obtaining a memory snapshot of the first application in response to the running data of the first application meeting a running data requirement; and performing memory leak detection on a plurality of first specified classes of the first application based on the memory snapshot of the first application. The first specified classes include service-related classes in the first application.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD