I have made major changes to ictclas4j and hope to greatly improve the speed of word segmentation, because the original speed is almost useless. However, I am very disappointed by the performance test plug-in tptp of Eclipse, which is intolerable for slow loading of big data, while the performance test of netbeans is not bad, at least I can start myProgram. Therefore, after modifying the program in eclipse, perform a performance test under netbeans.
The problem is that when the dictionary library is loaded, an outofmemery exception is reported, which is because the JVM stack is too small, add the-xmx256m JVM parameter to the eclipse run settings to run normally. However, in netbeans, it seems that there is no similar setting option in IDE. I checked it online. Someone said that you can set the netbeans_default_options option in $ netbeans_home/etc/netbeans. conf. I can set-xmx to MB, as shown below:
Netbeans_default_options = "-J-Xms64m-J-Xmx256m-J-XX: permsize = 128 M-J-XX: maxpermsize = 256 m-J-xverify: None-J-Dapple.laf.useScreenMenuBar = true"
After reading this, there is a configuration folder named nbproject under the project directory, which contains a project. properties. One of the options is run. jvmargs. The default value is null. It indicates that the JVM parameter is set. Add-xmx256m to the end to re-run the project. Everything is normal.