Re: Big XML file indexing out of Memory error
"Marco Ferretti" <[email protected]>
| Newsgroups | gmane.comp.jakarta.slide.user |
|---|---|
| Message-ID | <[email protected]> |
On 1/23/07, Aslam Bari <[email protected]> wrote: > > Hi Macro, > I did the same. I have some doubt to clear. Plz guide me on below topics, > becoz so far i don't know so much about slide code. > > 1. I m running tomcat by command line startup.bat and parameters like > > startup.bat -Xms256m -Xmx512m -XX:MaxPermSize=256m -Xss2m > > Is it the right way to use these parameters or we have to congigure them > somewhere else. I *think* ( I usually work under linux ... when in windows I use the service ) you have to double the minus so your cmd looks like startup.bat --Xms256m --Xmx512m --XX:MaxPermSize=256m --Xss2m > > > 2. I m using ByteArrayOutputStream and ByteArrayInputStream for extrating > contentes of XML file. I think genereally the outofmemory error comes here. > Is this bytearray.... is not suffieciet or i should use something else for > extracting. > I think that the classes you're using are fine. Further discussion on xml parsing ( we don't want to reinvent the wheel here ) can be found @ sun : http://java.sun.com/developer/technicalArticles/xml/JavaTechandXML_part3/ and @ ibm http://www-128.ibm.com/developerworks/library/wi-parsexml/ > > 3. I have changed "sequential-mode" "fine-grain" to "full". Whats the > difference between them and after change what will be the effect on slide > working. > Again, this is explained here http://wiki.apache.org/jakarta-slide/ConcurrencyIssues > > 3. I have configure custom properties in Domain.xml like this. It is the > right way or i have used wrong syntax. > > <propertiesindexer > classname="org.apache.slide.index.lucene.LucenePropertiesIndexer"> > <parameter name="indexpath">${filespath}store/index_meta</parameter> > <parameter name="asynchron">false</parameter> > <parameter name="priority">3</parameter> > > <configuration name="indexed-properties"> > > <!-- Custom Property --> > <property name="book" namespace="DAV:"> > <string/><is-defined/> > </property> > <property name="size" namespace="DAV:"> > <integer/><is-defined/> > </property> > > <property name="datepub" namespace="DAV:"> > <date/><is-defined/> > </property> > <property name="datemod" namespace="DAV:"> > <date/><is-defined/> > </property> > > </configuration> > </propertiesindexer> > Looks ok . Again the wiki helps you : http://wiki.apache.org/jakarta-slide/DaslConfiguration > > > Thanks... > NP !