Set JVM parameters in netbeans

Source: Internet
Author: User

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.

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.