问题:
使用pycharm时常出现
the IDE is running low on memory 的问题
表示pycharm这款IDE使用内存不足
需要在系统内存充足的情况下扩充IDE memory
方法:
1、设置显示内存使用情况
File 👉 Settings 👉 Appearance 👉 Windows Options 👉 show memmory indicator 👉 Apply
右下角会出现
左边数字:已使用IDE memory,右边数字:总共的IDE memory,初始为750M,如果pycharm出现卡顿,左边的数字将会逼近右边数字。
2、修改IDE memory
help 👉 Find Action 👉 输入VM Options 👉 Edit Custom VM Options
编辑pycharm.vmoptions文件,将 -Xmx750m 改为 -Xmx1024m
如果有特殊需要可将1024继续扩充,ctrl+s保存
重启pycharm,发现IDE memory从750M扩充为989M,pycham运行流畅。