Home > Article > Backend Development > Solution when encountering pycharm stuck when opening and slow loading
pycharm is stuck when opening and loading slowly. Many people on the Internet said to wait or I changed the configuration, but it didn't work. I found a post on the Internet and personally tested it and it worked.
During the operation, it was found that the CPU and memory usage were extremely high, and the computer slowed down significantly.
1. Using energy-saving mode, the CPU usage is significantly reduced
"File" -> "Power Save Mode"
2. Find the pycharm.exe.vmoptions file, Change its configuration information.
The poster is a Win7x64 system. The file is located in C:\Program Files (x86)\JetBrains\PyCharm 5.0.4\bin. Open and change the configuration information as follows:
Xms512m
- Xmx768m
-server
-Xverify:none
-XX:MaxPermSize=300m
-XX: UseG1GC
-XX:MaxGCPauseMillis=12
-XX:MaxHeapFreeRatio=70
-XX: CMSIncrementalPacing
-Dsun.awt.keepWorkingSetOnMinimize=true
Save and close, restart pycharm, and find that the memory usage is reduced.
For insurance purposes, the original pycharm.exe.vmoptions is backed up.
The settings in pycharm can be imported and exported. file>export settings can save the current settings in pycharm as a jar file. When reinstalling, you can directly import the settings>jar file, so there is no need to repeat the configuration.
[Recommended course: Python video tutorial]
The above is the detailed content of Solution when encountering pycharm stuck when opening and slow loading. For more information, please follow other related articles on the PHP Chinese website!