Ikanalyzer 3.2.8 Error Problem Solving method

Source: Internet
Author: User

use Ikanalyzer 3.2.8, tonight because this error is crazy an online, Baidu, Google a variety of search have not found can solve the method.
Error:java.lang.NoClassDefFoundError:Could not initialize class Org.wltea.analyzer.dic.Dictionary

later debugging found that the memory overflow was retrieved when no index was built.
when the index is under construction, the report:
java.lang.noclassdeffounderror:could not initialize class Org.wltea.analyzer.dic.Dictionar y .

and see Mr. Lin (http://linliangyi2007.iteye.com/) on the blog to reply to other people's comments: " IK has a 270,000-word dictionary that takes up 27m of memory, so you should be aware of your JVM's memory settings, which by default are only 64M, which is not enough for existing services. ".

I don't think the JVM was too small when Tomcat ran up.
decisively add-xms512m-xmx768m to the Tomcat VM arguments .

the problem is solved.


Ikanalyzer 3.2.8 Error Problem Solving method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.