简体   繁体   中英

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. I'm starting my main Eclipse instance using -Xmx2048 but I probably need to use less when running the second test instance. 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. 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.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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