Re: MMapDirectory failed to map a 23G compound index segment

2011-09-30 Thread Rich Cariens
My colleague and I thought the same thing - that this is an O/S configuration issue. /proc/sys/vm/max_map_count = 65536 I honestly don't know how many segments were in the index. Our merge factor is 10 and there were around 4.4 million docs indexed. The OOME was raised when the MMapDirectory was

Re: FW: MMapDirectory failed to map a 23G compound index segment

2011-09-21 Thread Yongtao Liu
rom: Michael McCandless [mailto:luc...@mikemccandless.com] > Sent: Tuesday, September 20, 2011 3:33 PM > To: solr-user@lucene.apache.org > Subject: Re: MMapDirectory failed to map a 23G compound index segment > > Since you hit OOME during mmap, I think this is an OS issue not a JVM

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-21 Thread Robert Muir
On Tue, Sep 20, 2011 at 12:32 PM, Michael McCandless wrote: > > Or: is it possible you reopened the reader several times against the > index (ie, after committing from Solr)?  If so, I think 2.9.x never > unmaps the mapped areas, and so this would "accumulate" against the > system limit. In order

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-20 Thread Michael McCandless
Since you hit OOME during mmap, I think this is an OS issue not a JVM issue. Ie, the JVM isn't running out of memory. How many segments were in the unoptimized index? It's possible the OS rejected the mmap because of process limits. Run "cat /proc/sys/vm/max_map_count" to see how many mmaps are

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-12 Thread Rich Cariens
Thanks. It's definitely repeatable and I may spend some time plumbing this further. I'll let the list know if I find anything. The problem went away once I optimized the index down to a single segment using a simple IndexWriter driver. This was a bit strange since the resulting index contained sim

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-09 Thread Lance Norskog
I remember now: by memory-mapping one block of address space that big, the garbage collector has problems working around it. If the OOM is repeatable, you could try watching the app with jconsole and watch the memory spaces. Lance On Thu, Sep 8, 2011 at 8:58 PM, Lance Norskog wrote: > Do you ne

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-08 Thread Lance Norskog
Do you need to use the compound format? On Thu, Sep 8, 2011 at 3:57 PM, Rich Cariens wrote: > I should add some more context: > > 1. the problem index included several cfs segment files that were around > 4.7G, and > 2. I'm running four SOLR instances on the same box, all of which have >

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-08 Thread Rich Cariens
I should add some more context: 1. the problem index included several cfs segment files that were around 4.7G, and 2. I'm running four SOLR instances on the same box, all of which have similiar problem indeces. A colleague thought perhaps I was bumping up against my 256,000 open files

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-08 Thread Rich Cariens
FWiW I optimized the index down to a single segment and now I have no trouble opening an MMapDirectory on that index, even though the 23G cfx segment file remains. On Thu, Sep 8, 2011 at 4:27 PM, Rich Cariens wrote: > Thanks for the response. "free -g" reports: > > totalused

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-08 Thread Rich Cariens
Thanks for the response. "free -g" reports: totalusedfreesharedbuffers cached Mem: 141 95 46 0 093 -/+ buffers/cache: 2 139 Swap: 3 0 3 2011/9/7 François Schiettecatte >

Re: MMapDirectory failed to map a 23G compound index segment

2011-09-07 Thread François Schiettecatte
My memory of this is a little rusty but isn't mmap also limited by mem + swap on the box? What does 'free -g' report? François On Sep 7, 2011, at 12:25 PM, Rich Cariens wrote: > Ahoy ahoy! > > I've run into the dreaded OOM error with MMapDirectory on a 23G cfs compound > index segment file. Th

MMapDirectory failed to map a 23G compound index segment

2011-09-07 Thread Rich Cariens
Ahoy ahoy! I've run into the dreaded OOM error with MMapDirectory on a 23G cfs compound index segment file. The stack trace looks pretty much like every other trace I've found when searching for OOM & "map failed"[1]. My configuration follows: Solr 1.4.1/Lucene 2.9.3 (plus SOLR-1969