Bsu 打补丁 出现Exception in thread "main" java.lang.OutOfMemoryError:Java heap space报错

时间:2021-03-24 17:32:24

用bsu打补丁时候报错。

Bsu 打补丁 出现Exception in thread "main" java.lang.OutOfMemoryError:Java heap space报错


原因:

bsu.sh is not configured with high enough values when applying larger patches such as a Patch Set Update.

解决办法:

修改bsu.sh

将 Xms512m Xmx512m修改为2048

再次运行。问题解决。

参考MOS处理过程:

  1. Go to $FMW_Home/utils/bsu.
  2. Edit bsu.sh (for UNIX) or bsu.cmd (for Windows).
  3. Here you will find the following: MEM_ARGS="-Xms256m -Xmx512m"
  4. Increase these values as needed: for example, to "-Xms2048m -Xmx2048m".