lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: cannot allocate memory for snapshooter
Date Fri, 02 Jan 2009 19:48:53 GMT
Here is another one that I just saw on hadoop's core-user list:

"If you have overcommit_mem turned on, Java 1.5 will lock *all* of
its maximum heap size into RAM (ignores swap!) upon startup.  Earlier
versions of 1.5 also allocate 1GB of RAM for code compilation.  I've
seen situations where there was enough RAM to start up, but not enough
to fork other processes."

 
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Brian Whitman <brian@echonest.com>
> To: solr-user@lucene.apache.org
> Sent: Friday, January 2, 2009 2:47:16 PM
> Subject: Re: cannot allocate memory for snapshooter
> 
> Thanks for the pointer. (It seems really weird to alloc 5GB of swap just
> because the JVM needs to run a shell script.. but I get hoss's explanation
> in the following post)
> 
> On Fri, Jan 2, 2009 at 2:37 PM, Bill Au wrote:
> 
> > add more swap space:
> > http://www.nabble.com/Not-enough-space-to11423199.html#a11424938
> >
> > Bill
> >
> > On Fri, Jan 2, 2009 at 10:52 AM, Brian Whitman wrote:
> >
> > > I have an indexing machine on a test server (a mid-level EC2 instance,
> > 8GB
> > > of RAM) and I run jetty like:
> > >
> > > java -server -Xms5g -Xmx5g -XX:MaxPermSize=128m
> > > -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heap
> > > -Dsolr.solr.home=/vol/solr -Djava.awt.headless=true -jar start.jar
> > >
> > > The indexing master is set to snapshoot on commit. Sometimes (not always)
> > > the snapshot fails with
> > >
> > > SEVERE: java.io.IOException: Cannot run program
> > > "/vol/solr/bin/snapshooter":
> > > java.io.IOException: error=12, Cannot allocate memory
> > > at java.lang.ProcessBuilder.start(Unknown Source)
> > >
> > > Why would snapshooter need more than 2GB ram?  /proc/meminfo says (with
> > > solr
> > > running & nothing else)
> > >
> > > MemTotal:      7872040 kB
> > > MemFree:       2018404 kB
> > > Buffers:         67704 kB
> > > Cached:        2161880 kB
> > > SwapCached:          0 kB
> > > Active:        3446348 kB
> > > Inactive:      2186964 kB
> > > SwapTotal:           0 kB
> > > SwapFree:            0 kB
> > > Dirty:               8 kB
> > > Writeback:           0 kB
> > > AnonPages:     3403728 kB
> > > Mapped:          12016 kB
> > > Slab:            37804 kB
> > > SReclaimable:    20048 kB
> > > SUnreclaim:      17756 kB
> > > PageTables:       7476 kB
> > > NFS_Unstable:        0 kB
> > > Bounce:              0 kB
> > > CommitLimit:   3936020 kB
> > > Committed_AS:  5383624 kB
> > > VmallocTotal: 34359738367 kB
> > > VmallocUsed:       340 kB
> > > VmallocChunk: 34359738027 kB
> > >
> >


Mime
View raw message