Reply to Reducing memory consumption

Your name:

Reply:


Posted by Bruno Barberi Gnecco on 04/24/07 00:27

I'm using PHP to run a CLI application. It's a script run by cron that
parses some HTML files (with DOM XML), and I ended up using PHP to integrate with
the rest of the code that already runs the website.

The problem is: it's eating more memory than a black hole. It eats the
current limit of 256MB set in php.ini, in an application that would hardly
consume 4MB if written in C. I don't care if this application takes much longer
to run than it would in C, but eating that much memory is not acceptable.

So, my question is, how do I find out what is eating that much memory?
I'm suspicious of memory leaks, or very stupid garbage collection. Any help?

--
Bruno Barberi Gnecco <brunobg_at_users.sourceforge.net>
This was the most unkindest cut of all.
-- William Shakespeare, "Julius Caesar"

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация