Eclipse RCP:如何增加 RCP 应用程序的堆大小?
我有一个 Eclipse RCP 应用程序,在其中使用 NSIS 生成 Windows 的 exe 文件。该 RCP 应用程序在处理大文件时遇到内存问题,并且会致命地关闭。我需要增加堆大小。我读了几篇文章,似乎解决方案是添加以下参数“-vmargs -Xms128m -Xmx512m”。但是,我不太确定该论证该放在哪里。
我查看已安装的项目文件夹结构,它具有以下结构:-
- configuration dir
|- ... some org.eclipse.* dirs
|- config.ini
- plugins dir
|- ... bunch of jars
- workspace dir
|- .metadata dir
|- .plugins dir
|- org.eclipse.ui.workbench dir
|- dialog_settings.xml
|- workbench.xml
- .eclipseproduct file
- myapp.exe <--- my RCP application
- uninstall.exe
如何增加 RCP 应用程序的堆大小?谢谢。
I have an Eclipse RCP application where I use NSIS to generate the exe file for Windows. This RCP application is running into memory issue when processing big files and it will just fatally shut down. I need to increase the heap size. I read a few articles and it seems like the solution is to add the following arguments "-vmargs -Xms128m -Xmx512m". However, I'm not quite sure where to place this argument at.
I look at the installed project folder structure, it has the following structure:-
- configuration dir
|- ... some org.eclipse.* dirs
|- config.ini
- plugins dir
|- ... bunch of jars
- workspace dir
|- .metadata dir
|- .plugins dir
|- org.eclipse.ui.workbench dir
|- dialog_settings.xml
|- workbench.xml
- .eclipseproduct file
- myapp.exe <--- my RCP application
- uninstall.exe
How do I increase the heap size for my RCP application? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些参数应位于名为
myapp.ini
的文件中,每个占一行,位于myapp.exe
旁边。它们可以在产品定义文件的启动选项卡中设置。The arguments should go, each on a line, in a file called
myapp.ini
, next tomyapp.exe
. They can be set up in the launching tab of the product definition file.