is matlab's xmlread using too much memory?
I am running into a memory problem when trying to read in large (not huge!) xml files. Estimating Java memory usage is tricky, but it seems that
dom=xmlread('somefile.xml');
takes way more memory than it ought to. I know how to set the default available Java memory in the preferences, but I am al开发者_JAVA百科ready up to 512MB and not even my full "resolution" xmls yet. And memory usage definitely does not scale well with file size.
If it will help I could provide a link to a ~5MB xml file that takes ~60MB of Java memory with xmlread.
Any ideas? Thanks in advance, -n
You could try the XML IO Tools from the file exchange as an alternative way of reading your file.
Also take a look at the Mathworks doc on Resolving "out of memory" errors.
精彩评论