<<<My index searcher is static object and it is getting refreshed every minute>>>
Does this mean you close/open your searcher every minute? If so, this could be the root of why your sorting is taking so long. Although it's not the OOM problem, see Faud's email. The first few searches on a newly opened searcher do a lot of setup, which is very expensive. A 50 second search is usually considered unacceptable, so you might want to revisit how often you open/close your searcher if, indeed, you are doing it every minute. Best Erick On Wed, Sep 17, 2008 at 8:46 AM, Ganesh - yahoo <[EMAIL PROTECTED]>wrote: > Hello all, > > I am have indexed more than 4 million documents. My query fetches 300,000 > hits. If i perform sorting on any field, then tomcat reports out of memory > exception. > Sometimes the query results may be around 1000, but sorting on any field > might take more than 30 - 50 secs. > > I don't know what's going wrong. > > My index searcher is static object and it is getting refreshed every > minute. JSP pages directly calls the index searcher object and performs > search. > > Regards > Ganesh > > > Send instant messages to your online friends http://in.messenger.yahoo.com > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >