Hi Eric, Thanks very much for helps (I should have responded sooner):
1/ My problem in 3.6 turned out to be much related to the fact I did not share schema, after using shareSchema, the start time is reduced up to 80% (to my great surprise, previously I thought burden is most in solrconfig). 2/ I just upgraded to solr 4.3, but somehow I did not see all the fixes mentioned in the WIKI (like shareConfig), I saw the resolution is "Won't fix", do you have plan to put the fix into next release? Thanks and best regards, Lisheng -----Original Message----- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Wednesday, May 22, 2013 4:57 AM To: solr-user@lucene.apache.org Subject: Re: solr starting time takes too long Zhang: In 3.6, there's really no choice except to load all the cores on startup. 10 minutes still seems excessive, do you perhaps have a heavy-weight firstSearcher query? Yes, soft commits are 4.x only, so that's not your problem. There's a shareSchema option that tries to only load 1 copy of the schema that should help, but that doesn't help with loading solrconfig.xml. Also in the 4.3+ world there's the option to lazily-load cores, see: http://wiki.apache.org/solr/LotsOfCores for the overview. Perhaps not an option, but I thought I'd mention it. But I'm afraid you're stuck. You might be able to run bigger hardware (perhaps you're memory-starved). Other than that, you may need to use more than one machine to get fast enough startup times. Best, Erick On Wed, May 22, 2013 at 3:27 AM, Zhang, Lisheng <lisheng.zh...@broadvision.com> wrote: > Thanks very much for quick helps! I searched but it seems that > autoSoftCommit is solr 4x feature and we are still using 3.6.1? > > Best regards, Lisheng > > -----Original Message----- > From: Carlos Bonilla [mailto:carlosbonill...@gmail.com] > Sent: Wednesday, May 22, 2013 12:17 AM > To: solr-user@lucene.apache.org > Subject: Re: solr starting time takes too long > > > Hi Lisheng, > I had the same problem when I enabled the "autoSoftCommit" in > solrconfig.xml. If you have it enabled, disabling it could fix your problem, > > Cheers. > Carlos. > > > 2013/5/22 Zhang, Lisheng <lisheng.zh...@broadvision.com> > >> >> Hi, >> >> We are using solr 3.6.1, our application has many cores (more than 1K), >> the problem is that solr starting took a long time (>10m). Examing log >> file and code we found that for each core we loaded many resources, but >> in our app, we are sure we are always using the same solrconfig.xml and >> schema.xml for all cores. While we can config schema.xml to be shared, >> we cannot share SolrConfig object. But looking inside SolrConfig code, >> we donot use any of the cache. >> >> Could we somehow change config (or source code) to share resource between >> cores to reduce solr starting time? >> >> Thanks very much for helps, Lisheng >>