PyCharm Low Memory Warning: How to Increase the Heap Size
Quick answer
If PyCharm slows down or shows a Low Memory warning (under 5% free heap after garbage collection), raise the maximum heap via Help | Change Memory Settings.
Most likely fix: Change memory settings
How to fix it
Try these in order — the most common fix is first.
1. Change memory settings
- Help | Change Memory Settings (or Settings | Memory Usage)
- Enter a larger value, or accept the suggested one from the warning's Adjust memory options
- Click Save and Restart
Did this fix it?2. Monitor usage
- Settings | Memory Usage, enable Show Memory Indicator
Did this fix it?3. Toolbox App or won't start
- Toolbox: instance settings icon | Settings | Configuration | Maximum heap size
- Standalone: copy the default JVM options file and edit -Xmx in the copy
Did this fix it?
Symptoms
IDE lags, freezes, or shows the Low Memory notification.
Why it happens
- Heap (-Xmx) too small for project size
- Many plugins or large projects
This guide also covers
- pycharm increase memory
- pycharm low memory warning
- pycharm slow
- pycharm xmx
Still not working?
If PyCharm keeps failing, you're not alone. See every PyCharm problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All slow, laggy or resource-hungry guides →
VS Code High CPU Usage (VS Code)
Sublime Text Slow or Glitchy Display: Indexing and GPU Settings (Sublime Text)
Cursor Slow, High CPU or Memory Usage (Cursor)
Other PyCharm errors
- PyCharm Invalid Python Interpreter / Invalid Environment
- PyCharm No Python Interpreter Configured for the Project
- PyCharm Unresolved Reference: Installed Package Not Recognized
- PyCharm Cannot Install or Find a Package
- PyCharm Conda Executable Not Found / Conda Environment Not Detected
- PyCharm Indexing Takes Forever / Stuck on Analyzing Project
- PyCharm Invalidate Caches / Restart: When and How
- PyCharm Debugger Not Working / Breakpoints Not Hit