7 ms·
Started off as very slow on a not-terribly large project > cache cleanup > does not even start without trashing the .idea folder anymore > still slooow. Comman
by imeron 5y ago
Started off as very slow on a not-terribly large project > cache cleanup > does not even start without trashing the .idea folder anymore > still slooow.
Command + space takes forever (=seconds) to show the context menu.
IntelliJ feels like a proper IDE now :).
- markdog12 5y agoIt has always been super slow for me, but they're making it even slower over time.
- victor106 5y agoIt works great if you give it enough memory. It is a memory hog but its the best IDE I've ever used.
- lumost 5y agoThey really need to update the default memory footprint. The 750MB default isn't enough for any projects these days and they don't exactly make it obvious how to update it to 2-4GB.
- fctorial 5y agoYou can use the action "change memory settings".
- selivanovp 5y agoNo need as you’ll get a warning on low memory if you’re on a large project, and IDE will advice you to increase heap size (just click provided option) and you can manually choose how much memory to provide. So it’s fine that default is relatively low.
- lumost 5y agoIn my experience, IDEA becomes GC bound quite readily during indexing which in combination with indexing blocking most operations stalls the UI. It's not that the IDE OOMs, it's that it burns cpu cleaning up objects in stop the world collections. These stop the world events can be mitigated with additional memory.
- KronisLV 5y ago> It is a memory hog This is different from my experience, when working on Java projects with a few thousand source files and about 1 million SLoC. Eclipse - had some problems with the autocomplete being slow to open, IDE was overall unresponsive and used around 2 GB of RAM NetBeans - the cache folder filled up weirdly quickly (though that was NetBeans 8.2 not the new Apache NetBeans), but the IDE worked fine with around 1.5 GB of RAM usage JetBrains - project was slow to open (+while indexing), but the IDE performs okay with 0.5 - 1 GB of RAM usage (though more needed when running/debugging) Currently i have a computer with 24 GB of RAM and an 8 core CPU, both of those seem sufficient but in my experience the IDE isn't the main thing consuming memory, it's actually all the services you might want to launch through it (if you need breakpoints across multiple ones). Of course, this would become more of an issue if you have something like 4 or 8 GB of RAM available. Disclaimer: this is anecdotal data and i may be wrong in regards to latest versions of the IDEs, since i only use JetBrains products nowadays.
- Tuna-Fish 5y ago> JetBrains - project was slow to open (+while indexing), but the IDE performs okay with 0.5 - 1 GB of RAM usage (though more needed when running/debugging) Just to be specific: Is this your experience just running the IDE at default settings, or did you increase the JVM heap size for it and had no effect? If you run it at default settings, the memory footprint will stay <1GB, because that's all it's allowed to use. My experience on this is that it's a great idea to bump the memory size to 4GB. I have not done any benchmarks on it, but it feels much faster in regular use.
- Macha 5y agoIt's also terrible to overdo it. Had a coworker having issues with 4GB on a project and he bumped it to 16GB (on a 32GB MBP) which resulted in epicly long GC pauses.
- KronisLV 5y agoI bumped the limit up to 2 GB, which is where i've left it for IntelliJ IDEA. When the IDE is mostly idle (with 10-20 opened source files), it generally uses around 0.5 GB of RAM. When i'm writing code, using autocomplete, reading documentation, running Maven actions, using the suggestions functionality (basically IntelliSense + some plugins), using refactoring functionality etc., then the memory usage can be bumped up to 1 GB. When the code is running, the memory usage can get closer to the 2 GB limit, when using debugger functionality, recompiling classes on the fly and so on. Personally, i haven't bumped the limit up higher, because i still need the memory for the actual Java processes of the services that i launch, since under normal circumstances i need at least 16 GB of RAM for all of the services to even run properly (but that may as well be a project related issue, since scheduled processes and a number of other optional things run locally, nor are all of them configured with Xmx and other parameters), though that's less relevant to the actual IDE performance (since i have swap turned off and it doesn't have an impact).
- staticassertion 5y agoI have the memory monitor on and intellij barely uses any of the memory I'm giving it - I recently upped the memory further and it didn't help at all.
- cinbun8 5y agoHas always been fast for me and Idea has been the best java IDE around. What specs do you run and how large is your project?
- mumblemumble 5y agoAs someone who switches between doom emacs and intellij: If you have to ask questions like, "What specs do you run and how large is your project?" it is slow.
- chrisseaton 5y agoDoes Doom Emacs provide the same functionality as IntelliJ IDEA?
- mumblemumble 5y agoNo. Which is probably a big part of it. The thing is, as far as I can tell, there's a very high overlap between the list of features I don't use, and the list of features that contribute to the sluggishness.
- jen20 5y agoSome additional anecdata: on my maxed out 16” (admittedly Intel) Mac, IntelliJ/PyCharm/Goland/Webstorm are all quicker to start than Spacemacs. I haven’t tried Doom Emacs but don’t get the impression it would be much quicker.
- mumblemumble 5y agoOne of the main selling points of doom emacs is that it starts up more quickly than spacemacs.
- tsar9x 5y agoIt starts quickly because everything is lazy loaded, if you open project it will start language server, start indexing etc, It's definitely not much faster than IntelliJ, but functionality is still behind.
- mark_l_watson 5y agoYou have a good point. I have found myself using PyCharm a lot in the last year and switching to a M1 MacBook really helped speed up PyCharm.
- darksaints 5y agoThe problem is that Intellij is written in Java, using the hotspot JVM, which is JIT compiled. But IDEs, especially fully featured IDEs, are a terrible type of workload for JIT compilation. They're full of branches, which can easily cause recompilations, and the breadth of features mean that there is never really a spot hot enough to stay compiled outside of the editor itself. I really wish AOT compilation was taken more seriously in the JVM world. Yes, I know about graal native-image and the various embedded commercial JVMs, but those are niches. It would be great if I could just precompile using O3 level compilation for a whole app using a standard JVM, and not have to worry about the weird and hard-to-debug performance fluctuations that come with JITs.
- pjmlp 5y agoHotspot can cache generated binary code across runs since Java 11, but people keep using Java 8....
- coldtea 5y agoIntelliJ comes (optionally, but by default) with it's own packaged JRE/JDK/Java version iirc, so that wouldn't be an issue...
- pjmlp 5y agoApparently they couldn't be bothered to provide an AppCDS archive in modern JVM to go alongside InteliJ.
- coldtea 5y agoI also have the feeling that's only pjmlp and maybe 100 enterprises around the world that do use some features like these! You always seem to mention them (class sharing, Java AOT compilers, etc), but nobody (for values of somebody < enough) seems to be actually using them :-)
- pjmlp 5y ago
- bredren 5y agoI use Pycharm but needed phpstorm for a project. I wrote asking if I should target IntelliJ or just go with the two. There isn’t a clear order for feature introduction after stuff hits IntelliJ. However, they mentioned a few times that people who need multiple tools often pick individual apps simply because they are much lighter weight than IntelliJ.
- fuzzy2 5y agoNothing lightweight with any solution involving the IntelliJ platform, lol. Still, you're better of with the specialized IDEs. Some of their functionality is not available as plugins for IntelliJ IDEA, even though it would probably be feasible.
- derptron 5y agoYes, if you clear your cache, it will be slow. IntelliJ has to reindex your dependencies.
- simion314 5y agoWait for it to finish indexing, try to remove unnecessary folders from the indexes.