Hello again Aslam, The important piece of configuration below is -XX:MaxPermSize. By default it's 64MBytes, and I would suggest setting it higher, 256MBytes for example. My company got a home-made indexer based on lucene, and while extracting documents, the indexer always goes out of memory, even though the max memory wasn't reached. Setting the -XX:MaxPermSize to higher values, max memory is now reached, but no out of memory exception occurs.
Read this link: http://www.unixville.com/~moazam/stories/2004/05/17/maxpermsizeAndHowItRelat esToTheOverallHeap.html It may be nonsense, but I believe the out of memory occurs when there is no more memory available on the object reference data table in the JVM memory. Out of memory in permGen may be happening because parsing XML documents to DOM representation, creates much more objects than the usual JVM usage. Hope this helps, Miguel Figueiredo -----Original Message----- From: aslam bari [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 22 de Janeiro de 2007 11:55 To: Slide Users Mailing List Subject: Re: Big XML file indexing out of Memory error Hi Miguel, Thanks for reply, But i know i can increase the heap size, but problem is that i can use only 512m max heap size., Not allowed more. set JAVA_OPTS= -Xmx512m But what if 35-50MB xml file come in extractor, will it gone out of memory. ----- Original Message ---- From: Miguel Figueiredo <[EMAIL PROTECTED]> To: Slide Users Mailing List <[email protected]> Sent: Monday, 22 January, 2007 3:35:18 PM Subject: RE: Big XML file indexing out of Memory error Hello Aslam, Not sure if you already tried this, but set this options to the JVM: -Xms128m -Xmx768m -XX:MaxPermSize=256m Hope this helps, Miguel Figueiredo -----Original Message----- From: Aslam Bari [mailto:[EMAIL PROTECTED] Sent: sábado, 20 de Janeiro de 2007 12:05 To: [email protected] Subject: Big XML file indexing out of Memory error Dear all, I m sending Big XML files to server about 30 - 50MB size. I have configured SimpleXmlExtractor. When this extractor start parsing, Two things happend:- 1. Either Out Of Memory error occured. 2. Or The Request get Timed-Out. I see the Code of SimpleXMLExtractor, it is using SAXBuilder with JDOM. Can we use something else to speed up the process. Thanks... -- View this message in context: http://www.nabble.com/Big-XML-file-indexing-out-of-Memory-error-tf3044992.ht ml#a8464267 Sent from the Jakarta Slide - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
