Re: memory usage




Dennis de Wit wrote:
Hi all,

Is there any command in PHP that gives me an overview of the amount of
used memory at the moment of calling? I'd like to debug some problems I
experience in an application.

I'd like to do something like
<?
echo free_memory();
?>

at certain "breakpoints" to find the source of my problem.
(free_memory() would be the max_mem_usage - actual_usage... duh)

Anyone?

Thanks,

Dennis

How about memory_get_usage()

<http://www.php.net/memory_get_usage>

.



Relevant Pages

  • memory usage
    ... Is there any command in PHP that gives me an overview of the amount of used memory at the moment of calling? ... I'd like to debug some problems I experience in an application. ...
    (alt.php)
  • memory usage
    ... Is there any command in PHP that gives me an overview of the amount of used memory at the moment of calling? ... I'd like to debug some problems I experience in an application. ...
    (php.general)
  • [UNIX] PHP gd Library imageRotate() Function Information Leak Vulnerability
    ... PHP gd Library imageRotateFunction Information Leak Vulnerability ... Information leak vulnerabilities allow access to e.g. the Apache memory ... gdImagePtr gdImageRotate (gdImagePtr src, double dAngle, ... if($debug) ...
    (Securiteam)
  • Re: Apache and Tux running together
    ... my job we've got a web based product provided by Apache running PHP ... This web application is hosted by multiple servers ... out on the number of httpd processes and falls behind to the ... so I'm thinking I'm memory bound. ...
    (comp.lang.php)
  • Re: Memory Cleanup
    ... Calling GC.Collect is not the ... // The total memory has not gone down. ... reference counters, and nothing happens when objects go out of scope. ... objects just remain in memory waiting for the garbage collector to remove ...
    (microsoft.public.dotnet.languages.csharp)