Eclipse memory is not enough, Internal Error is often reported when loading multiple projects

The error is as follows:

An out of memory error has occurred. Consult the "Running Eclipse" section of the read me file for information on preventing this kind of error in future.
You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without warning.
See the .log file for more details.
Solution:

1. When starting ecplise, right-click the ecplise icon - "Properties - "Shortcut - "Target and add -clean -vmargs -Xms512m -Xmx800m -XX :PermSize=256m; the parameters can be appropriately modified

jvm parameters as follows:
jvm parameter configuration

a: -Xmx<n>                      

specifies the maximum heap size of the jvm, such as: -Xmx=2g


b: -Xms<n>                      

specifies the minimum heap size of the jvm , such as: -Xms=2g, for high concurrent applications, it is recommended to be the same as -Xmx to prevent the performance impact caused by memory shrinkage/sudden increase.


c: -Xmn<n>                      

Specify the size of New Generation in jvm, such as: -Xmn256m. This parameter affects performance. If your program needs more temporary memory, it is recommended to set it to 512M. If it is used less, try to lower this value. Generally speaking, 128/256 is enough.


d: -XX:PermSize=<n>

specifies the minimum value of Perm Generation in jvm, such as: -XX:PermSize=32m. This parameter depends on your actual situation. You can use the jmap command to see how much is needed.


e: -XX:MaxPermSize=<n>          

specifies the maximum value of Perm Generation, such as: -XX:MaxPermSize=64m

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326391049&siteId=291194637