Eclipse heap space (out of memory error)

前端 未结 3 1950
盖世英雄少女心
盖世英雄少女心 2021-02-06 12:07

I am facing memory issue in eclipse. Initially I was getting this error: ‘Unhandled event loop exception java heap space’ and also sometimes ‘An out of memory error has occured’

3条回答
  •  难免孤独
    2021-02-06 13:07

    Jeshurun's somewhat flippant comment about buying more RAM is actually fairly accurate. Eclipse is a memory HOG! On my machine right now Eclipse is using 2.1GB; no joke. If you want to be able to use Eclipse really effectively, with all the great features, you really need lots of memory.

    That being said, there are ways to use Eclipse with less memory. The biggest helper I've found is disabling ALL validators (check "Suspend all validators" under Window>Preferences>Validation; just disabling the individual ones doesn't help enough). Another common source of memory-suckage is plugins. If you're going to stay at your current memory limit, I strongly recommend that you:

    1. Uninstall your current Eclipse
    2. Download the core/standalone/just Java version of Eclipse (the one with least filesize/no plug-ins built-in)
    3. Try using just that for awhile, and see how the performance is. If it's ok, try installing the plug-ins you like, one at a time. Never install multiple, and give each one a week or two of trial.
    4. You'll likely find that some plug-ins dramatically increase memory usage; don't use those (or if you do, get more RAM).

    Hope that helps.

提交回复
热议问题