I have some memory issues, but using IntelliJ IDEA 13.1 (currently 13.1.6) due to insufficient RAM . I work on a rather large project and often run some maven builds, as well as a web application in debug mode. I have a 32-bit OS (Windows 7), 3 GB of RAM and an SSD . I am using JDK 7 .
Maven constructs that run inside IntelliJ IDEA often arise due to insufficient memory, and I have to resume them from the moment of failure.
The warning " Low computer on computer ) is often displayed by Windows when I am building Maven or trying to run a web application using IntelliJ IDEA.
I use the following parameters in the idea.exe.vmoptions "configuration file (located in the same directory as the" idea.exe "file):
-server -Xms128m -Xmx700m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=64m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseCodeCacheFlushing -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50
The following value is specified in the MAVEN_OPTS environment variable:
-Xmx1024m -Dfile.encoding=UTF8
I have already disabled unused plugins and found out that it is useful to restart IDEA after operations that require memory , for example, for example. after assembling Maven. I also found out that it closes as many other applications as possible , but not always.
However, all of the above tricks did not fix the problem .
What are your recommendations besides expanding RAM or switching to a 64-bit OS?
Do you know the best settings for the file "idea.exe.vmoptions" ?
java intellij-idea memory maven jvm
krm Jan 19 '15 at 13:57 2015-01-19 13:57
source share