After updating IDEA a couple of weeks ago, I const...
# intellij
n
After updating IDEA a couple of weeks ago, I constantly get low memory warnings and after a few minutes, it becomes unresponsive and I have to force close. I can’t say whether it’s due to the IDEA version (2023.2.1 CE) or just my machine (M1, 16GB) but the timing suggests it’s the former. My project is not that big either. Today I finally clicked on that Analyse Heap button and then on Send Report. Is this enough for someone to look into this or should I also open a ticket? Also, is there some workaround that I could use in the meantime? Like, “disable this feature and memory usage will drop”. At least I can work.
not kotlin but kotlin colored 1
m
What's your IDEA heap size? You can configure it in 'help' -> 'configure memory settings' (not 100% sure but something like that)
n
It’s set at 3GB, is it low? It was 2GB until last week when I tried bumping a bit, and I had been working with 2GB forever before that with no issues, on the same project… So I suspect some sort of leak somewhere. Also not sure if it’s related, but I often get a “Kotlin indexes are corrupted” warning.
m
That's my current usage 😬
But then if it used to work yea, it's probably a regression
Disable all plugins, give IDEA 8GB, invalidate caches and restart
Of course it means less RAM for other process but maybe MacOS will do a good job at priorizing/swapping, I don't know
a
@natario1, it is better to create a separate ticket to KTIJ project. Here is the instruction regarding reporting performance issues: https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems And if possible, please attach the project with the issue reproduction, steps to reproduce the issue and IDEA About information. Thank you!
n
Thanks a lot guys. It’s unlikely I can provide the whole project or repro steps, but I will follow all the suggestions in the article and create a ticket. Just for the record, I bumped the heap size further to 4GB and the issue is gone.
Also, thanks a lot for making me discover this bottom-right memory widget, very useful!
🙂 1
121 Views