I want to allocate around 1GB of heap size, but I can't seem to figure it out.
How to do this?
Use Help | Edit Custom VM Options…
An editor will open automatically for the right .vmoptions file, adjust the value of -Xmx, save and restart IntelliJ IDEA:
.vmoptions
-Xmx
Check these documents from IntelliJ IDEA knowledge base for more details:
Answers below suggest to edit .vmoptions file directly inside the application installation directory. Please note that it's not recommended since it will cause conflicts during patch updates. The method above creates a copy of the file in the CONFIG directory and your IDE installation remains intact.
Also be aware of the 32-bit address space limit on Windows which makes it hard to use heap sizes higher than 750m. Should you need to use larger heap, make sure to switch to the 64-bit JVM first, otherwise IDE may crash on start or start to crash randomly during work.
750m
1.4m articles
1.4m replys
5 comments
57.0k users