Re:OOM at solr master node while updating document

2011-07-06 Thread Chengyang
Seems FieldCache consume all the heap.



At 2011-07-05 16:25:27,Chengyang  wrote:
Is there any memory leak when I updating the index at the master node?
Here is the stack trace.

o.a.solr.servlet.SolrDispatchFilter - java.lang.OutOfMemoryError: Java heap 
space
at 
org.apache.solr.handler.ReplicationHandler$FileStream.write(ReplicationHandler.java:1000)
at 
org.apache.solr.handler.ReplicationHandler$3.write(ReplicationHandler.java:887)
at 
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:322)
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at 
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:425)
at 
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:378)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:619)




OOM at solr master node while updating document

2011-07-05 Thread Chengyang
Is there any memory leak when I updating the index at the master node?
Here is the stack trace.

o.a.solr.servlet.SolrDispatchFilter - java.lang.OutOfMemoryError: Java heap 
space
at 
org.apache.solr.handler.ReplicationHandler$FileStream.write(ReplicationHandler.java:1000)
at 
org.apache.solr.handler.ReplicationHandler$3.write(ReplicationHandler.java:887)
at 
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:322)
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at 
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:425)
at 
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:378)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:619)


after the slave node pull index from master, when will solr del the tmp index dir

2010-10-25 Thread Chengyang
I noticed that the slave node have some tmp Index.x dir that created during 
the index sync with master, but they are not removed even after serval days. So 
when will solr del the tmp index dir?


JVM GC is very frequent.

2010-08-25 Thread Chengyang
We have about 500million documents are indexed.The index size is aobut 10G. 
Running on a 32bit box. During the pressure testing, we monitered that the JVM 
GC is very frequent, about 5min once. Is there any tips to turning this?


In multicore env, can I make it access core0 by default

2010-08-11 Thread Chengyang
Thus when I access http://localhost/solr/select?q=*:* equals 
http://localhost/solr/core0/select?q=*:*.




Is there a better for solor server side loadbalance?

2010-08-04 Thread Chengyang
The default solr solution is client side loadbalance.
Is there a solution provide the server side loadbalance?



Is solr able to merge index on different nodes

2010-07-28 Thread Chengyang
Once I want to create a large index, can I split the index on different nodes 
and the merge all the indexs to one node.
Any further suggestion for this case?


Any tips/guidelines to turning the Solr/luence performance in a master/slave/sharding environment

2010-07-27 Thread Chengyang
How to reduce the index files size, decreate the sync time between each nodes. 
decrease the index create/update time.
Thanks.



Re:Re: Any there any known issues may cause the index sync between the master/slave abnormal?

2010-07-21 Thread Chengyang


Hi Peter,
Thanks your reponse. I will check the 
http://wiki.apache.org/solr/SolrReplication first.
I mean the slave node did not delete the old index and finally cause the disk 
usage to large for the  slave node.
I am thinking to manually force the slave node to refresh the index.

Regards,
James.



>Hi!
>
>> Any there any known issues may cause the index sync between the
>> master/slave abnormal?
>
>What do you mean here? Corrupt indices? Please, describe your problems
>in more detail.
>
>> And is there any API to call to force sync the index between the
>> master and slave, or force to delete the old index on the slave?
>
>Syncing can be done via HTTP:
>>
http://wiki.apache.org/solr/SolrReplication
>Regards,
>Peter.


Any there any known issues may cause the index sync between the master/slave abnormal?

2010-07-20 Thread Chengyang
Any there any known issues may cause the index sync between the master/slave 
abnormal?
And is there any API to call to force sync the index between the master and 
slave, or force to delete the old index on the slave?