Search International and National Patent Collections

1. (WO2018103216) METHOD AND APPARATUS FOR DETECTING MEMORY LEAKAGES

Pub. No.:    WO/2018/103216    International Application No.:    PCT/CN2017/075737
Publication Date: Fri Jun 15 01:59:59 CEST 2018 International Filing Date: Tue Mar 07 00:59:59 CET 2017
IPC: G06F 11/36
Applicants: WUHAN DOUYU NETWORK TECHNOLOGY CO., LTD
武汉斗鱼网络科技有限公司
Inventors: DING, Ping
丁萍
Title: METHOD AND APPARATUS FOR DETECTING MEMORY LEAKAGES
Abstract:
A method and apparatus for detecting memory leakages, used in the automatic detection of memory leakages. Said method comprises: a memory detection module monitors each job activity of a target application (S101); when any of said activities are monitored as having exited, and one or more references of said activity are not cleared, it is determined that a memory leakage exists in said target application (S102); said one or more references which are not cleared are dumped one-by-one into one or more binary dump files (hprof files) of said target application, wherein said hprof file is capable of representing the referential relationship of a reference (S103); on the basis of each of said hprof files, the referential relationship of a reference saved in said hprof file is represented, thus the reference chain for each reference may be determined (S104); and a reference chain causing memory leakages may be determined from one or more of said reference chains (S105).