如果代码检测没有快速找到泄露,则您可能需要执行一些应用程序转储并分析它们以找到引用增加了的对象。
If code inspection does not quickly find the leak, you will probably need to take some application dumps and analyze them to find the objects whose references are growing in size.
在这种情况下,应用程序错误日志、或应用程序转储中的堆栈跟踪,通常很难为找出产生问题的确切代码行提供实际的帮助。
In such cases, error logs from the application, or stack traces from the application dumps, often provide little or no help in pinpointing the exact line of code where the problem originates.
比较两个堆转储中应用程序对象的数目。
Compare the number of application objects in each heap dump.
应用推荐