問題:
使用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運行流暢。