简体   繁体   English

在“启动Eclipse应用程序”以测试插件时配置内存设置

[英]Configure memory settings when “Launching Eclipse Application” to test plugin

I'm experimenting with creating an Eclipse plugin, but when I try to test it using "Launch an Eclipse application" it fails due to insufficient memory. 我正在尝试创建Eclipse插件,但是当我尝试使用“启动Eclipse应用程序”对其进行测试时,由于内存不足而失败。 I'm starting my main Eclipse instance using -Xmx2048 but I probably need to use less when running the second test instance. 我正在使用-Xmx2048启动我的主要Eclipse实例,但是运行第二个测试实例时,可能需要使用更少的实例。 How can I configure that? 我该如何配置?

Instead of running your plugin by "Run As" - > "Eclipse Application" , select "Run->Run Configurations" and Create a new one or select existing launch configuration. 不用通过"Run As" - > "Eclipse Application"运行插件,而是选择"Run->Run Configurations"并创建一个新的或选择现有的启动配置。 Here you can set memory arguments on Arguments tab for your plugin launch. 在这里,您可以在“参数”选项卡上设置内存参数以启动插件。

See Below Sample image 参见下文样本图片

Eclipse启动配置

Please see Setting up Eclipse Launch Configuration for more details. 请参阅设置Eclipse启动配置以获取更多详细信息。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM