Java.lang.OutOfMemory Java Heap Space JDeveloper

a 夏天 提交于 2019-12-04 02:04:34
KristofMols

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:

  • jdev.conf
  • ide.conf

Update these files as follows:

  1. Quit JDeveloper.
  2. Edit ide.conf.
  3. Append the following
    AddVMOption -Xms256M
    AddVMOption -Xmx1024M
    
  4. Edit jdev.conf.
  5. Find the AddVMOption for the "heap size."
  6. Change the values as follows:
    AddVMOption -Xmx1024M
    AddVMOption -XX:MaxPermSize=1024M
    

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.

Kai Sternad

Edit ${JDEV_HOME}\jdev\bin\jdev.conf and set the following options:

AddVMOption -Xmx512M
AddVMOption -XX:MaxPermSize=512M

then restart JDeveloper.

If your jDeveloper doesn't start after trying the above options, reduce the size from 1024 to 768 to 512

In 'ide.conf' change

AddVMOption -Xms256M
AddVMOption -Xmx1024M

to

AddVMOption -Xms256M
AddVMOption -Xmx768M

If this also doesn't start your jDeveloper, change it to

AddVMOption -Xms256M
AddVMOption -Xmx512M

And the same goes with 'jdev.conf'

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!