Reply to Long CLI-process consumes too much memory

Your name:

Reply:


Posted by fnatter on 02/22/07 15:34

hi,

I am using an adapted (CLI) version of the mediawiki wiki->HTML parser
on several thousand articles. Because of performance, we don't want to
start the php interpreter for each article, so we loop over articles
in the php script calling the parser.

The problem is that some memory is not freed, and for about 100
articles,
the memory usage increased by about 10M. We recreate the Parser-Object
in each iteration to avoid accumulation of article-data, but maybe
there
are still references to some or all of this. Is there a way to make
sure
that there are no references to $parser (or parts of it) so that it
really
gets freed?

Can I recursively free memory of an object including all subobjects?

Finally, is there a way to debug memory usage (display by object)?

thanks!

--
Felix Natter

[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

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