发明名称 On-demand monitoring of memory usage
摘要 A method, system, and computer usable program product for on-demand monitoring of memory usage are provided in the illustrative embodiments. An indication of a memory leak in an application is detected where the application is operating in a data processing system and using a memory associated with the data processing system. An instruction to begin monitoring a memory usage of the application is received responsive to the detection. Responsive to receiving the instruction to begin, the memory usage of the application is monitored. An instruction to dump a data related to the monitoring is received and the data is dumped. An instruction to end the monitoring is received and the monitoring is ended. The detecting, the beginning, the dumping, and the ending may occur while the application remains in operation and while the application uses the memory. The memory leak is confirmed using the data.
申请公布号 US8904359(B2) 申请公布日期 2014.12.02
申请号 US200812043279 申请日期 2008.03.06
申请人 International Business Machines Corporation 发明人 Kao I-Lung;Chang Frances L.
分类号 G06F9/44;G06F21/55 主分类号 G06F9/44
代理机构 Garg Law Firm, PLLC 代理人 Garg Law Firm, PLLC ;Garg Rakesh;Kalaitzis Parashos
主权项 1. A method for monitoring memory usage, the method comprising: detecting an indication of a memory leak in an application, the application being a directory server according to a directory access protocol and operating in a data processing system and using a memory associated with the data processing system, wherein the indication is responsive to determining that (i) a rate of growth of memory space allocated to the application exceeds a threshold rate of allocation at a first time, and (ii) an unused portion of the memory space allocated that is freed at a second time exceeds a threshold amount; receiving, responsive to the detecting, from a client application of the directory server using an interface to a memory monitoring component in the application, an instruction to begin monitoring a memory usage of the application to invoke a first extended operation to execute monitoring on-demand in the directory server; beginning, responsive to receiving the instruction to begin, monitoring the memory usage of the application, wherein the memory monitoring component in the application performs the monitoring; receiving an instruction to dump a data related to the monitoring causing a second extended operation to execute on-demand in the directory server; dumping the data, responsive to receiving the instruction to dump; receiving an instruction to end the monitoring causing a third extended operation to execute on-demand in the directory server; ending the monitoring, responsive to receiving the instruction to end, wherein the detecting, the beginning, the dumping, and the ending occur while the application remains in operation and while the application uses the memory; and confirming using the data the memory leak.
地址 Armonk NY US