News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Antony Dovgal's Blog:
locating memory hungry code with memtrack
January 28, 2009 @ 11:19:18

Sometimes finding that one spot in your code that's geting bloated and consuming at majority of your memory can be a bit difficult. Antony Dovgal has proposed one solution in a new post to his blog - the memtrack extension for from PECL.

We needed to locate where most of the memory is allocated in our scripts (as some of them became too memory hungry), so I've created memtrack extension. This extension helps us to see unusually big memory allocations in production code.

The extension logs memory usage information out to the standard error log file (however that'd defined on your system) and comes with a few configuration options. These let you control things like a "soft limit" at which to report the usage problems, the ability to ignore certain functions that you might know will cause a high load and and "vm_limit" setting that can help if your script is leaking memory at the end of its run.

0 comments voice your opinion now!
memory leak memtrack pecl extension bloat problem


blog comments powered by Disqus

Similar Posts

Robert Basic's Blog: Zend Framework full page cache tips

Zeev Suraski's Blog: PHP Security

Hannes Magnusson: I have a dream

Zend Developer Zone: PHP Abstract Podcast Episode 27: Introducing PECL Picks

Ralph Schindler's Blog: Compiling Gearman (or anything) for Zend Server CE on Snow Leopard


Community Events

Don't see your event here?
Let us know!


api laravel5 extension psr7 video laravel release community library interview voicesoftheelephpant unittest framework podcast series opinion development language conference introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework