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.


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.


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.


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>



Thanks...


Marco Ferretti wrote:
> 
>>
>> I have also heard rumour that slide has many memory leaks. How can i run
>> a
>> GC to clear garbage memory time to time.
> 
> System.gc();
> 
> althou I am not sure this will do the trick for you since the memory
> hole Miguel is referring to *shall* automatically call a gc when no
> more space available ... before throwing the exception
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Big-XML-file-indexing-out-of-Memory-error-tf3044992.html#a8520941
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]

Reply via email to