日期:2014-05-20  浏览次数:20809 次

如何查看内存泄漏的原因
我最近在写一个用Berkeley   DB存取parser信息的程序,在存的过程中,发现消耗大量的内存,内存都即将耗尽,但始终不知道效率的瓶颈在哪,希望各位大侠给予指点,多谢了,^_^


------解决方案--------------------
内存泄露或益出 最根本是从对象的申请、释放等动作看出 问题.
  LZ自己检查程序吧,还有就是工具 查看.
------解决方案--------------------
找个检测工具,早上刚收到JProfiler的邮件。

Dear evaluator,

we are happy to announce the immediate availability of JProfiler 5.0.

JProfiler 5.0 has many new features including a powerful trigger and action system, support for HPROF memory snapshots, a call tracer view, new VM telemetries and much more.

Please see the summary at:

http://www.ej-technologies.com/products/jprofiler/whatsnew5.html

We invite you to try out JProfiler 5.0 at:

http://www.ej-technologies.com/download/jprofiler/trial.php

Kind regards,

Hannes Kegel
ej-technologies GmbH