Eclipse RCP:如何增加 RCP 应用程序的堆大小?

发布于 2024-10-09 12:24:38 字数 565 浏览 1 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

子栖 2024-10-16 12:24:38

这些参数应位于名为 myapp.ini 的文件中,每个占一行,位于 myapp.exe 旁边。它们可以在产品定义文件的启动选项卡中设置。

The arguments should go, each on a line, in a file called myapp.ini, next to myapp.exe. They can be set up in the launching tab of the product definition file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文