2 options will help Xerces consume less memory 1)turn OFF validation for any Documents created from the DocumentBuilderFactory e.g. factory.setValidating(false);
2)turn OFF namespace awareness for any Documents created from the DocumentBuilderFactory e.g. factory.setNamespaceAware(false); More info available at http://mia.ece.uic.edu/~papers/WWW/MultimediaStandards/Parsers.pdf M- ----- Original Message ----- From: "loredana loredana" <[EMAIL PROTECTED]> To: <users@tomcat.apache.org> Sent: Friday, November 16, 2007 9:11 AM Subject: java.lang.OutOfMemoryError: PermGen space > I'm having some problems figuring out what webapp is causing this problem. I figure the cause of this is the fact that garbage collector does not clean up and memory allocated for java object generation is used . Right now i have a hunch on one of the webapps: > I have an application which connects every 5 minutes to an url, opens a stream and reads some data(about 20 lines from an xml file) appends that text to a local file, draws a chart based on that data and creates some html files. The xml files where the text is appended can get to a max of 30 kb at the end of the day. That's not that much. But still, could something like this cause the PermGen space error? 10x > > > > > ____________________________________________________________________________ ________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]