I see such issues on larger multi-module projects. A very reproducable example would be something like Presto (
https://github.com/prestosql/presto) or Debezium (
https://github.com/debezium/debezium).
I've increasing the JVM heap as much as I reasonably could but giving 2GB of Heap to an IDE on a 16GB system seems wasteful.