首先打开内存指示器,可以看用了多少内存,一共分配了多少 在右下角显示 设置内存大小 无效设置 安装目录下 /bin/idea.exe.vmoptions 和 /bin/idea64.exe.vmoptions,这两个改了没变化。 正确姿势 help > edit custom vm options 对应实际目录 C:\Users\用户名\AppData\Roaming\JetBrains\IntelliJIdea2021.3