PyCharm Crazy CPU usage! Over 1,000%
Hello, I'm experiencing a problem for a long time. My PyCharm sometimes get's crazy and use more than 1,000% CPU.
It freezes, and I can't understand the reason.
Laptop:
Apple MacBook Pro M2 Max, 32gb
PyCharm 2024.1.1 (Professional Edition)
Build #PY-241.15989.155, built on April 29, 2024
Licensed to ***
You have a perpetual fallback license for this version.
Subscription is active until ****
Runtime version: 17.0.10+1-b1207.14 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
ide.experimental.ui=true
terminal.new.ui=true
python.debug.asyncio.repl=false
Non-Bundled Plugins:
io.github.aveenstra.run-anything (2.0)
com.jetbrains.space (241.15989.9)
com.vermouthx.idea (1.16.0)
org.turbanov.run.configuration.as.action (3.0)
com.markskelton.one-dark-theme (5.10.0)
com.intellij.ml.llm (241.15989.156)
com.leinardi.pycharm.mypy (0.16.2)
org.basedsoft.plugins.basedtyping (0.1.3)
com.koxudaxi.pydantic (0.4.13)
com.mallowigi (95.0.0)
Please sign in to leave a comment.
If you have any custom plugins, please try disabling them. If it doesn't help, please submit a performance problem report to https://youtrack.jetbrains.com with the following data:
- Is the issue project-specific, i.e. is it reproduced in a new minimal project?
- logs from **Help | Collect Logs and Diagnostic Data**
- CPU snapshot according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems
Hello Andrey Resler , thanks for the response!
I guess that I found what the issue was, and I'll write it down here to help if more people face the same: it was lack of memory!
I realized that my Docker was consuming a way too much RAM. I have 32 gb, but my RAM was almost entirely consumed by Docker and the services I run. So PyCharm was struggling to maintain himself working with low memory. Also, the project I'm working with is pretty heavy, containing several projects attached at once.
I've put a limit in the RAM my Docker can access and I'm not experiencing PyCharm CPU issues anymore.
If it continues to happen I come back and answer this topic again.
Thanks very much.