Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装hanlp插件后,节点就内存溢出outofmemory #10

Open
jacklu2016 opened this issue Dec 12, 2019 · 1 comment
Open

安装hanlp插件后,节点就内存溢出outofmemory #10

jacklu2016 opened this issue Dec 12, 2019 · 1 comment

Comments

@jacklu2016
Copy link

java.lang.OutOfMemoryError: Java heap space
at com.hankcs.hanlp.model.perceptron.model.LinearModel.load(LinearModel.java:434) ~[?:?]
at com.hankcs.hanlp.model.perceptron.model.LinearModel.load(LinearModel.java:388) ~[?:?]
at com.hankcs.hanlp.model.perceptron.model.LinearModel.(LinearModel.java:65) ~[?:?]
at com.hankcs.hanlp.model.perceptron.PerceptronLexicalAnalyzer.(PerceptronLexicalAnalyzer.java:70) ~[?:?]
at com.hankcs.hanlp.model.perceptron.PerceptronLexicalAnalyzer.(PerceptronLexicalAnalyzer.java:95) ~[?:?]
at com.hankcs.hanlp.HanLP.newSegment(HanLP.java:685) ~[?:?]
at org.elasticsearch.plugin.hanlp.conf.ConfigHelper.lambda$getSegment$0(ConfigHelper.java:149) ~[?:?]
at org.elasticsearch.plugin.hanlp.conf.ConfigHelper$$Lambda$1685/783382452.run(Unknown Source) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_65]
at org.elasticsearch.plugin.hanlp.conf.ConfigHelper.getSegment(ConfigHelper.java:132) ~[?:?]
at org.elasticsearch.plugin.hanlp.analysis.HanLPAnalyzerProvider.(HanLPAnalyzerProvider.java:35) ~[?:?]
at org.elasticsearch.plugin.hanlp.analysis.HanLPAnalyzerProvider.getPerceptronAnalyzerProvider(HanLPAnalyzerProvider.java:51) ~[?:?]
at org.elasticsearch.plugin.hanlp.AnalysisHanLPPlugin$$Lambda$446/905650857.get(Unknown Source) ~[?:?]
at org.elasticsearch.index.analysis.AnalysisRegistry.buildMapping(AnalysisRegistry.java:362) ~[elasticsearch-6.1.1.jar:6.1.1]
at org.elasticsearch.index.analysis.AnalysisRegistry.buildAnalyzerFactories(AnalysisRegistry.java:187) ~[elasticsearch-6.1.1.jar:6.1.1]
at org.elasticsearch.index.analysis.AnalysisRegistry.build(AnalysisRegistry.java:157) ~[elasticsearch-6.1.1.jar:6.1.1]
at org.elasticsearch.index.IndexService.(IndexService.java:160) ~[elasticsearch-6.1.1.jar:6.1.1]

@JrJessyLuo
Copy link

I had the same problem. But I solved it by modifying the file “jvm.options” in the “config” directory. I changed the "-Xms1g -Xmx1g" to "-Xms4g -Xmx4g".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants