San*_*hal 7 php memory-leaks reference-counting
我有一个相当大的PHP脚本泄漏内存.我已经能够找出泄漏的对象,但我无法找到脚本泄漏的位置.我的脚本的某些部分是保留对泄漏对象的引用.
有什么方法可以跟踪(并且最好是回溯)PHP对象在哪里/当它的引用计数增加或减少时?
Aur*_*kus 2
您可以使用分析工具来找出内存泄漏的原因,我更喜欢http://xdebug.org/和http://code.google.com/p/webgrind
http://derickrethans.nl/xdebug-and-tracing-memory-usage.html
归档时间:
13 年,9 月 前
查看次数:
5744 次
最近记录: