Re: [xml] Memory not going away.. SOLUTION
- From: Daniel Veillard <veillard redhat com>
- To: "David W. Bauer Jr." <bauerd cs rpi edu>
- Cc: xml gnome org
- Subject: Re: [xml] Memory not going away.. SOLUTION
- Date: Tue, 8 Mar 2005 17:59:10 -0500
On Tue, Mar 08, 2005 at 05:43:22PM -0500, David W. Bauer Jr. wrote:
Ok, I have provided the simplest of examples, and cannot account for why
this is so either, but that doesn't change the fact that it is so.
I can prove libxml2 actually free the memory. Use
xmllint --repeat --noout network.xml
it will parse the tree, free it with xmlFreeDoc and repeat the
two operations in a loop 100 times. If it does not call() free
accordingly then your system will swap and the xmllint process will
dies due to the out of memory kernel killer.
Anyway loading a 300MB instance in memory to then build your own
structures reslly does not make sense, use the reader for this really.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]