Am 03.06.2010 16:45, schrieb Andrzej Bialecki:
> You are right to a certain degree. Still, there are some contention
> points in Lucene/Solr, how threads are allocated on available CPU-s, and
> how the heap is used, which can make a two-JVM setup perform much better
> than a single-JVM setup given the same number of threads...

Allow me to don't belive this! ;-) It's not Solr that allocates threads,
it's the web server (Jetty, Glassfish, or whatever). In a normal
configuration, it will use as many threads as useful, so that there's no
need to start a second web server on the same machine.

To Lucene, there is some magic algorithm that reuses an IndexReader by a
limited number of threads (as far as I have seen in the code, but the
details are unimportant). But to the very least, if you've a multi core
setup, you'll get special IndexReader instances from Lucene per core. So
I don't see why you should scatter them on different VMs.

Greetings,
Michael

Reply via email to