Tools/Techniques for Debugging Memory Leaks/Usage Bugs in PHP -


"itemprop =" text ">

I have found a command line script that runs an array () one of the files Using a filename as an argument to call a method on loop, and a helper object.

PHP's memory_get_usage reports a large number

>
  53294264 57019624 61374624 65699176 70230600 75157152 79900392 84630472 89359264 94300016 100031176 105202448 110360808 115777528 121146976 126784824 132366952  

as long as I

  PHP fatal error: allowing end memory size of 134217728 bytes  < / Pre> 

It is clear that some memory is leaking, or keeps adding to some type of global / stable storage area. What is the best way to debug this type of error in PHP? Are there normal situations where it is inadvertently PHP? Does Xdebug have some magic options that can help me recognize this? Other equipment?

The best I'm running, I'm following a series of performance and by calling the codebase to memory_get_usage (), as long as I do not solve the exact problem, but it is a tedious and inefficient Looks like the approach.

It seems that provides Facebook.

(I've never used it, but to really want to ...)


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -