pycharm running way slow

后端 未结 9 667
礼貌的吻别
礼貌的吻别 2020-12-07 08:20

I\'m a big fan of PyCharm by JetBrains but I do run into some issues that I thought maybe I\'ll ask here about.

  1. It hangs unexpectedly and this happens often. O
9条回答
  •  眼角桃花
    2020-12-07 08:46

    Well Lorenz Lo Sauer already have a good question for this. but if you want to resolve this problem through the Pycharm Tuning (without turning off Pycharm code inspection). you can tuning the heap size as you need. since I prefer to use increasing Heap Size solution for slow running Pycharm Application.

    You can tune up Heap Size by editing pycharm.exe.vmoptions file. and pycharm64.exe.vmoptions for 64bit application. and then edit -Xmx and -Xms value on it.

    So I allocate 2048m for xmx and xms value (which is 2GB) for my Pycharm Heap Size. Here it is My Configuration. I have 8GB memory so I had set it up with this setting:

    -server
    -Xms2048m
    -Xmx2048m
    -XX:MaxPermSize=2048m
    -XX:ReservedCodeCacheSize=2048m
    

    save the setting, and restart IDE. And I enable "Show memory indicator" in settings->Appearance & Behavior->Appearance. to see it in action :

    and Pycharm is quick and running fine now.

    Reference : https://www.jetbrains.com/help/pycharm/2017.1/tuning-pycharm.html#d176794e266

提交回复
热议问题