On the Help menu, click Edit Custom VM Options. Set the -Xmx option to a higher value and restart IntelliJ IDEA.