How can I set VM options in a Java Netbeans Platform Modular Project?

后端 未结 7 1938
暖寄归人
暖寄归人 2020-12-15 07:10

I have a Netbeans Platform modular project, not a regular Java project. I want to set VM options to increase memory, but under the \"properties\" dialog, there is no way to

7条回答
  •  爱一瞬间的悲伤
    2020-12-15 07:30

    I was finally able to solve this based on information at http://activeintelligence.org/blog/archive/gephi-increasing-xmx-memory-in-netbeans/

    What I did was modify the project.properties file, as JB said, but the correct way to do it was to add a -J before the args. E.g.,

    run.args.extra=-J-Xms256m -J-Xmx756m
    

    That did it! Not sure why it took 3 months to figure that out. Definitely a fail for the Netbeans documentation. They should really make this editable from the properties menu instead of making users hunt through nondescript config files!

提交回复
热议问题