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

20 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

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

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

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

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

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

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

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

The embodiment of the invention provides a memory leak detection method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a memory leak detection instruction for a first application, and randomly generating an operation instruction of the first application according to the memory leak detection instruction; triggering the first application to run according to the running instruction, and acquiring running data of the first application; when the running data of the first application meets the running data requirement, acquiring a memory snapshot of the first application; performing memory leak detection on a plurality of first specified classes of the first application according to the memory snapshot of the first application; the first specified class comprises a class related to a service in the first application.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Memory leakage detection method, device, equipment, storage medium and program product

This disclosure provides a method, apparatus, device, storage medium, and program product for memory leak detection, relating to fields such as memory leak detection, and application scenarios including but not limited to memory leak detection scenarios. The method includes: acquiring memory snapshots of a target application at two target time points during a target memory detection period, and storing the two memory snapshots in a local file; wherein the two target time points include the start and end time points of the target memory detection period; determining the function call tree corresponding to each of the two memory snapshots based on the two memory snapshots in the local file; determining relevant data on memory leaks during the target application's operation in the target memory detection period based on the function call trees corresponding to the two memory snapshots; writing the memory snapshots to a local file reduces the memory usage of the memory snapshots, avoids memory crashes caused by excessive memory usage of the memory snapshots, and improves the efficiency of memory leak detection.
Owner:SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD

A memory leak detection processing method and device for a storage system

The application provides a memory leakage detection processing method and device of a storage system. The method comprises: in response to an application memory request initiated by a secondary process to a primary process in the storage system, judging whether the secondary process has a memory leakage condition based on memory usage information recorded by a slot array corresponding to the primary process; the secondary process is one or more processes predefined in the storage system for implementing external function operations, and the primary process is a process slot array predefined in the storage system for implementing internal memory usage management and monitoring; each array element in the process slot array is used to obtain a memory page according to the application memory request; and based on application record information corresponding to the slot array, a target function operation with memory leakage in the secondary process is determined when it is determined that the secondary process has a memory leakage condition. The method provided by the application can effectively improve the efficiency of memory leakage detection processing of the storage system and quickly locate the function operation causing memory leakage in the secondary process.
Owner:INSPUR SUZHOU INTELLIGENT TECH CO LTD