Hello, Andi.

I have another index (size=20Gb). It can be opened with IndexSearcher,
but when I try to to do search it has exception:
2005-02-15 14:41:41,588 ERROR searchSorted
Traceback (most recent call last):
  File "./RemoteSearcherServer.py", line 63, in searchSorted
    topFieldDocs = self.luceneSearcher.searcher.search(query, None, n, 
self.luceneSearcher.sort)
  File "/usr/lib/python2.4/site-packages/PyLucene.py", line 2241, in search
    def search(*args): return _PyLucene.Searcher_search(*args)
ValueError: java.lang.OutOfMemoryError
   <<No stacktrace available>>

I have 1Gb of memory on the server. After creation of IndexSearcher,
script consumes 90Mb of RAM. I have 800Mb of free RAM before I try to
do search. what can be wrong?

AV> There is a thread currently on the Lucene user list titled 'Opening up one
AV> large index takes 940M or memory' that may bring some answers to your 
problem.
AV> There may also be ways to increase the amount of memory gcj gets to use, I
AV> would look on the [EMAIL PROTECTED] mailing list archives for this.

AV> Andi..

AV> On Tue, 15 Feb 2005, Yura Smolsky wrote:

>> Hello, Andi.
>>
>> I have index of 51Gb. When I try to create IndexSearcher with
>> FSDirectory of this index, I receive exception:
>>
>> GC Warning: Out of Memory!  Returning NIL!
>> Traceback (most recent call last):
>>  File "./RemoteSearcherServer.py", line 275, in ?
>>    server.processCommandLine(sys.argv)
>>  File "/home/search/lib/myCORBA.py", line 81, in processCommandLine
>>    self.start()
>>  File "/home/search/lib/myCORBA.py", line 51, in start
>>    self.setUp()
>>  File "./RemoteSearcherServer.py", line 240, in setUp
>>    self.objServant = RemoteSearcher_i(num, path, luceneSearcher)
>>  File "./RemoteSearcherServer.py", line 132, in __init__
>>    luceneSearcher._reloadIndex()
>>  File "./RemoteSearcherServer.py", line 18, in _reloadIndex
>>    self.searcher = IndexSearcher(self.directory)
>>  File "/usr/lib/python2.4/site-packages/PyLucene.py", line 2266, in __init__
>>    newobj = _PyLucene.new_IndexSearcher(*args)
>> ValueError: java.lang.OutOfMemoryError
>>   <<No stacktrace available>>
>>
>> Why?
>>
>> Yura Smolsky.
>>
>>
>>




Yura Smolsky.


_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to