Hi All,
I have been using libxml for a while and recently came up with a memory
usage problem for the xmlDocPtr.
So, tried using the compression as,
xmlSetDocCompressMode(m_domTree, 9);
But looks like there is no change in the memory usage.
Also following is the way, how did I check the memory usage of the process
which was having the xmlDocPtr in memory.
(wheel)# ps -auxww 93274
USER PID %CPU %MEM *VSZ RSS* TT STAT STARTED TIME COMMAND
root 93274 0.0 1.3* 16088 13192* p1 S+ 1:21PM 0:00.09
./clid -d 1
(wheel)#
Then I added few nodes to the xml file as follows, from which I built the
xmlDocPtr.
Also set the compression mode as 9.
<test21>
<nodeType hide="1">static</nodeType>
<description hide="1">test description</description>
</test21>
Then I checked the memory usage, which showed that it increased by 4KB.
Just for the 4 set of nodes as above, it increased by 4KB.
(wheel)# ps -auxww 93274
USER PID %CPU %MEM * VSZ RSS* TT STAT STARTED TIME COMMAND
root 93274 0.0 1.3 * 16092 13196* p1 S+ 1:21PM 0:00.09
./clid -d 1
(wheel)#
So, I would like to know, how could we optimize the memory usage of
xmlDocPtr in libxml.
Because, the xml files I would be using would increase in size hugely for
which I need
to optimize the memory usage of the xmlDocPtr.
Please give your suggestions.
Thanks
Senthil Nathan R
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml