You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by David Whalen <dw...@enr-corp.com> on 2007/07/27 15:06:42 UTC

Solr 1.1 HTTP server stops responding

Hi All.

We're running Solr 1.1 and we're seeing intermittent cases where
Solr stops responding to HTTP requests.  It seems like the listener
on port 8983 just doesn't respond.

We stop and restart Solr and everything works fine for a few hours,
and then the problem returns.  We can't seem to point to any
single factor that would lead to this problem, and I'm hoping
to get some hints on how to diagnose it.

Here's what I can tell you now, and I can provide more info by request:

1) The query load (via /solr/select) isn't that high.  Maybe 20 or 30
requests per minute tops.

2) The insert load (via /solr/update) is very high.  We commit almost
500,000 documents per day.  We also trim out the same number however,
so the net number of documents should stay around 20 million.

3) We do see Out of Memory errors sometimes, especially when making
facet queries (which we do most of the time).

We think solr is great, and we want to keep using it, but the downtime
makes the product (and us) look bad, so we need to solve this soon.

Thanks in advance for your help!

DW

Re: Solr 1.1 HTTP server stops responding

Posted by Marcus Stratmann <st...@gmx.de>.
Hi David,

> We're running Solr 1.1 and we're seeing intermittent cases where
> Solr stops responding to HTTP requests.  It seems like the listener
> on port 8983 just doesn't respond.

When we started using solr we encountered the same problem. We are 
currently running solr 1.0 (!) with tomcat 5.5 on two servers. Our index 
has 16 million documents and is updated about 10 times per day 
(depending on the incoming data).
We found out three factors which may be responsible for the problems:

1) Memory. Our two servers running solr have 8 GB each and we have set 
the option -Xmx2560M for tomcat. We got rid of the most problems by 
increasing the memory. We had no success trying to get solr running with 
just 4GB in the machine.

2) Disk activity. This is strange. We found out that using rsync on the 
machine sometimes makes solr stop responding. We cound avoid this by 
setting an upper limit on the bandwidth rsync uses. Just recently we 
found out that even copying big files on the machine stops solr. So It 
seems that high disk activity might cause problems for solr.
(We have a MySQL database running on the same servers. Normal operation 
seems to be no problem, even if the servers have high load.)

3) Reading and writing at the same time. We had no chance updating an 
index while querying it at the same time. So when the index on our 
master server is updated all queries will go to the second server.

I think that some of the problems are solved in newer versions of solr. 
We are going to test that in the near future.

Marcus