python學習筆記 | PyCharm出現卡頓解決方法


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM