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.
If it's a script that is using a ton of memory, you can use PHP's memory_get_usage() function to help you debug.
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
精彩评论