Hi,
All of a sudden we started to get following exception about SOLR on our live server.
This is causing a very high CPU usage on the server, displaying server busy error to users.
----------------------------------------------------------
2013-01-11 13:04:06,715 ERROR org.dspace.statistics.SolrLogger @ Service Unavailable
Service Unavailable
request: http://127.0.0.1:8080/solr/statistics/update
org.apache.solr.common.SolrException: Service Unavailable
Service Unavailable
request: http://127.0.0.1:8080/solr/statistics/update
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:343)
at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183)
at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217)
at org.apache.solr.client.solrj.SolrServer.commit(SolrServer.java:85)
at org.dspace.statistics.SolrLogger.post(SolrLogger.java:247)
at org.dspace.statistics.SolrLoggerUsageEventListener.receiveEvent(SolrLoggerUsageEventListener.java:41)
at org.dspace.services.events.SystemEventService.fireLocalEvent(SystemEventService.java:154)
--------------------------------------------------------
I goggled on this error and found a page from AtMire http://atmire.com/statistics_performance.php,.
It talks about enabling autocommit.
The settings for autocommit in our solrconfig.xml are commented.
<!-- Perform a <commit/> automatically under certain conditions:
maxDocs - number of updates since last commit is greater than this
maxTime - oldest uncommited update (in ms) is this long ago
<autoCommit>
<maxDocs>10000</maxDocs>
<maxTime>1000</maxTime>
</autoCommit>
-->
Do we need to enable autocommit to resolve this error?
Another interesting thing to notice is that wget on solr url shows an error.
wget http://127.0.0.1:8080/solr/statistics/
--2013-01-11 13:18:47-- http://127.0.0.1:8080/solr/statistics/
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-01-11 13:18:47 ERROR 404: Not Found.
Is there anything missing here?
Thanks
Kirti