[jdom-interest] Out of memory mit beta 8

Alex Rosen arosen at silverstream.com
Tue Jul 23 11:25:42 PDT 2002


Beta 8 uses StringBuffer in a particular way that sometimes causes the VM to
not release memory, even when it's available for freeing. I don't know
exactly why. The current code in CVS uses a different technique, and doesn't
have this problem, so give it a try.

Alex

> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Tim vor der Brueck
> Sent: Tuesday, July 23, 2002 7:04 AM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] Out of memory mit beta 8
>
>
> I get with the new JDOM beta 8 always Out of Memory Errors with big
> files.
> This did not occur with the old JDOM beta 7.
> By the way, I started my program with java -Xms100M -Xmx300M
> Maybe an error in the beta?
>
> Stack-Trace:
>
> Loading Rules...Exception in thread "main" java.lang.OutOfMemoryError
>
> at java.lang.StringBuffer.copy(StringBuffer.java, Compiled Code)
>
> at java.lang.StringBuffer.setLength(StringBuffer.java, Compiled Code)
>
> at org.jdom.input.SAXHandler.flushCharacters(SAXHandler.java, Compiled
> Code)
>
> at org.jdom.input.SAXHandler.endElement(SAXHandler.java,
> Compiled Code)
>
> at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java,
> Compiled Code)
>
> at
> org.apache.xerces.validators.common.XMLValidator.callEndElemen
> t(XMLValidator.java,
> Compiled Code)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatch
> er.dispatch(XMLDocumentScanner.java,
> Compiled Code)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDo
> cumentScanner.java,
> Compiled Code)
>
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java, Compiled
> Code)
>
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java, Compiled Code)
>
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java, Compiled Code)
>
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java, Compiled Code)
>
> at de.dfki.lt.egram.xml.Grammar.open(Grammar.java, Compiled Code)
>
> at de.dfki.lt.egram.gui.Editor.open(Editor.java, Compiled Code)
>
> at de.dfki.lt.egram.gui.Editor.main(Editor.java, Compiled Code)
>
>
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com




More information about the jdom-interest mailing list