将编译时分配的堆大小设置大一点,我这里给了2G
- File | Settings | Build, Execution, Deployment | Compiler
如果还是不行,就去设置IDEA运行内存大小
- Help —> Edit Custome VM Options
- -Xms设置最小内存,这里我分配了1g
- -Xmx设置最大内存,这里我分配了4g
- 转自:https://dandelioncloud.cn/article/details/1403089816178462721
- Help —> Edit Custome VM Options