Java.lang.OutOfMemory Java 堆空间 JDeveloper
我正在 Java 上编写一个应用程序,它抛出此错误 Java.lang.OutOfMemory Java Heap Space JDeveloper
。我知道我可以在命令行中添加java -Xmx512m
来解决问题。但是,我需要在 JDeveloper 上运行该应用程序。所以,我的问题是:
如何增加 JDveloper 上堆的大小?
谢谢你, 萨米人
I am writing an application on Java and it is throwing this error Java.lang.OutOfMemory Java Heap Space JDeveloper
. I know that I can add java -Xmx512m
to the command line to solve the problem. However, I need to run this application on JDeveloper. So, my Question is:
How to increase the size of the Heap on JDveloper?
Thank you,
Sami
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
概述
JDeveloper 内存不足的原因包括堆限制和大文件。
堆限制
控制 JDeveloper 启动时提供给 JVM 的内存量的文件(相对于
jdeveloper/ide/bin/
目录)包括:按如下方式更新这些文件:
ide.conf
。jdev.conf
。AddVMOption
。大文件
JDeveloper 天真地尝试解析位于项目根级目录中的具有已知文件扩展名的文件。足够大的文件(例如 3GB XML 文件)将会导致问题。要解决此问题,请为大数据创建一个子目录并将文件移入其中。 JDeveloper 不会尝试在任意子目录中查找资源。
Overview
The reasons JDeveloper can run out of memory include heap limits and large files.
Heap Limits
Files that control the amount of memory afforded to the JVM for JDeveloper upon startup, relative to the
jdeveloper/ide/bin/
directory, include:Update these files as follows:
ide.conf
.jdev.conf
.AddVMOption
for the "heap size."Large Files
JDeveloper naïvely attempts to parse files having known file extensions that are located in the project's root level directory. A sufficiently large file, such as a 3GB XML file, will cause problems. To work around this issue, create a subdirectory for the large data and move the file into it. JDeveloper will not try to find resources in arbitrary subdirectories.
编辑 ${JDEV_HOME}\jdev\bin\jdev.conf 并设置以下选项:
然后重新启动 JDeveloper。
Edit ${JDEV_HOME}\jdev\bin\jdev.conf and set the following options:
then restart JDeveloper.
如果您的 jDeveloper 在尝试上述选项后没有启动,请将大小从 1024 减小到 768 再到 512
在“ide.conf”中更改
为
如果这也无法启动您的 jDeveloper,请将其更改为
对于“jdev”也是如此.conf'
If your jDeveloper doesn't start after trying the above options, reduce the size from 1024 to 768 to 512
In 'ide.conf' change
to
If this also doesn't start your jDeveloper, change it to
And the same goes with 'jdev.conf'