Increase Java IntelliJ Heap Size

after many studies, I could not get the result. I am new to IntelliJ IDEA, I am using version 11.1.2. I work with 3 modules (3 eclipse projects), and in each of them I installed Settings β†’ Compiler β†’ Java Compiler with the following values:

Maximum Heap Size (MB): 512

Additional command line options:

-target 1.6 -XX: MaxPermSize = 512M -Xms256m -Xmx512m -XX: PermSize = 512m

And also configured Maven virtual machine parameters as the following:

-XX: PermSize = 1024M -XX: MaxPermSize = 512m -Dfile.encoding = UTF-8 -Duser.language = ep

with verified missed tests ...

I also changed Applications -> IntelliJ IDEA 12 -> Content -> Info.plist :

<key>VMOptions</key> <string>-ea -Xverify:none -Xbootclasspath/a:../lib/boot.jar</string> <key>VMOptions.i386</key> <string>-Xms256m -Xmx512m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m</string> <key>VMOptions.x86_64</key> <string>-Xms256m -Xmx512m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m -XX:+UseCompressedOops</string> <key>WorkingDirectory</key> 

But after making these changes, IntelliJ shows me 200-250 MB of heap space allocated in the lower right corner ... What's wrong?

+4
source share
3 answers

Adding the -Xms512m -Xmx1024m parameters in the Maven configuration for runners (not in the settings, but in what I created for my project), a java heap error was solved for me.

+11
source

Try adding MAVEN_OPTS as -Xms512 -Xmx1024m to your Windows environment variables . Right-click the computer-> advanced-> environment variables and try starting the maven assembly and see if it works.

+4
source

The real answer to the title of the question on Mac is here: How to increase the IDE memory limit in IntelliJ IDEA on Mac?

Quote from CrazyCoder:

Now it can accept VM parameters from ~/Library/Preferences/<appFolder>/idea.vmoptions and system properties from ~/Library/Preferences/<appFolder>/idea.properties .

0
source

All Articles