Kuner / mmseg4j

Automatically exported from code.google.com/p/mmseg4j
Apache License 2.0
0 stars 0 forks source link

solr 多核模式下出错 #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HTTP Status 500 - Severe errors in solr configuration. Check your log files for 
more detailed information on what may be wrong. If you want solr to continue 
after configuration errors, change: 
<abortOnConfigurationError>false</abortOnConfigurationError> in solr.xml 
------------------------------------------------------------- 
java.lang.OutOfMemoryError: Java heap space at 
java.util.HashMap.<init>(HashMap.java:209) at 
com.chenlb.mmseg4j.CharNode$TreeNode.<init>(CharNode.java:151) at 
com.chenlb.mmseg4j.CharNode$KeyTree.add(CharNode.java:91) at 
com.chenlb.mmseg4j.CharNode.addWordTail(CharNode.java:25) at 
com.chenlb.mmseg4j.Dictionary$WordsFileLoading.row(Dictionary.java:265) at 
com.chenlb.mmseg4j.Dictionary.load(Dictionary.java:283) at 
com.chenlb.mmseg4j.Dictionary.loadWord(Dictionary.java:209) at 
com.chenlb.mmseg4j.Dictionary.loadDic(Dictionary.java:191) at 
com.chenlb.mmseg4j.Dictionary.reload(Dictionary.java:356) at 
com.chenlb.mmseg4j.Dictionary.init(Dictionary.java:122) at 
com.chenlb.mmseg4j.Dictionary.<init>(Dictionary.java:115) at 
com.chenlb.mmseg4j.Dictionary.getInstance(Dictionary.java:78) at 
com.chenlb.mmseg4j.solr.Utils.getDict(Utils.java:22) at 
com.chenlb.mmseg4j.solr.MMSegTokenizerFactory.inform(MMSegTokenizerFactory.java:
70) at 
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:551) at 
org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:124) at 
org.apache.solr.core.CoreContainer.create(CoreContainer.java:481) at 
org.apache.solr.core.CoreContainer.load(CoreContainer.java:335) at 
org.apache.solr.core.CoreContainer.load(CoreContainer.java:219) at 
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:161
) at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:96) at 
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterCon
fig.java:277) at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConf
ig.java:258) at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterC
onfig.java:382) at 
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.
java:103) at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638) 
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294
) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649) 
solr在多核模式下,每个core下面都有自己的字典文件的情况下
出错。
solr 3.6  
mmseg4j 1.8.5
tomcat 7.0.27

Original issue reported on code.google.com by yjliu1...@gmail.com on 20 Jun 2012 at 9:28

GoogleCodeExporter commented 9 years ago
一个 core 一个字典文件。一个字典文件大概需要 50M 
所以,容易 oom,后续改进。

Original comment by chenlb2...@gmail.com on 12 Jul 2012 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by chenlb2...@gmail.com on 19 May 2014 at 12:14

GoogleCodeExporter commented 9 years ago
转移到  https://github.com/chenlb/mmseg4j-solr/issues/3

Original comment by chenlb2...@gmail.com on 19 May 2014 at 12:16