简体   繁体   中英

How do U detect memory leaks in my web portal?

How do we check there are any memory leaks in a web site?

Are there any tools available for free to check memory leakage in the web portal.

I am using the php and Mysql technologies for the site.

如果它是一个使用大量内存的脚本,则可以使用PHP的memory_get_usage()函数来帮助您调试。

You can make use of the PHP profiling tools such as xdebug . (even come with GUI tools )

This tools provide a way for to trace all the functions calls, create variables ... etc and most importantly the memory usage for each stages/calls and it's accumulated memory used.

Related question : PHP memory profiling

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM