PyCharm Low Memory Warning: How to Increase the Heap Size

Share
Workaround available Windows, macOS, Linux Updated November 14, 2026How we research

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. 1. Change memory settings

    1. Help | Change Memory Settings (or Settings | Memory Usage)
    2. Enter a larger value, or accept the suggested one from the warning's Adjust memory options
    3. Click Save and Restart
    Did this fix it?
  2. 2. Monitor usage

    1. Settings | Memory Usage, enable Show Memory Indicator
    Did this fix it?
  3. 3. Toolbox App or won't start

    1. Toolbox: instance settings icon | Settings | Configuration | Maximum heap size
    2. 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 us
Fixed it? Share this guide

The same problem in other apps

All slow, laggy or resource-hungry guides →

Other PyCharm errors

All 10 PyCharm errors and fixes →