From: muhammad i. <m.i...@gm...> - 2011-01-05 21:43:37
|
Hello, I am trying to index large files as follows for(int j = 0; (j < pagesIds.count())&& !m_stop ; j++) { pagesText = m_DbManager->getBookPage(m_booksIds.at(i), pagesIds.at(j)).toUtf8(); if(!pagesText.isEmpty()) { Document* doc = fileDocument(QString::number(pagesIds.at(j)), QString::number(m_booksIds.at(i)), pagesText); writer->addDocument(doc); _CLDELETE(doc); } } but when the number of files exceeds 5000 files the application usage of my computer ram is 2 GB I tried to debug and i found that this happens in IndexWriter::addDocument(Document*) i tried to set IndexWriter->setMergeFactor(5); and also IndexWriter->setRAMBufferSizeMB(10); I know the default ram usage should be 16 MB but i just tried. I am working on master branch and i merged with it memory_leaks branch. is am i missing something? Mohammad Ismael |