一种内存泄漏处理方法、装置、计算机设备和存储介质

By monitoring the lifecycle of data instance objects and the queue of object references, the memory leak problem of list pages was solved, enabling timely memory optimization and smooth page operation, and providing a detailed memory leak report.

CN116204449BActive Publication Date: 2026-07-17DOUYIN VISION CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
DOUYIN VISION CO LTD
Filing Date
2023-03-03
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

The memory usage of the list page increases continuously during refresh, leading to memory exhaustion and page lag. Existing technologies struggle to effectively detect and optimize memory leaks.

Method used

By monitoring the lifecycle of data instance objects, using an object reference queue to record reclaimed objects, calculating the number of memory leaks, releasing memory in a timely manner, and generating memory leak information to report to the server, timely optimization of list page memory is achieved.

Benefits of technology

It enables timely optimization of list page memory, avoiding memory exhaustion and page lag, provides accurate memory leak reports, and supports long-term monitoring and optimization on the server side.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116204449B_ABST
    Figure CN116204449B_ABST
Patent Text Reader

Abstract

本公开提供了一种内存泄漏处理方法、装置、计算机设备和存储介质,其中,该方法包括:响应于内存泄漏检测功能被触发,确定在列表页中已创建的数据实例对象中、生命周期结束的第一对象的第一数量;所述列表页用于展示已创建的所述数据实例对象,不同的数据实例对象占用的内存大小不同;根据所述第一数量和所述列表页关联的对象引用队列中存储的、已被回收的第一对象的第二数量,确定当前发生内存泄漏的第二对象的第三数量;对各所述第二对象所占用的内存进行释放,并将根据所述第三数量生成的内存泄漏信息上报至服务端;所述服务端用于根据来自不同客户端的内存泄漏信息,生成内存泄漏报告。
Need to check novelty before this filing date? Find Prior Art