0

A quick question here. I'm compiling a fairly big WAR in IntelliJ 2016.1.1 with Java 8. I'm using a Tomcat plugin in Ultimate edition. Everything runs on 64 bit Windows 8 machine.

I'm getting java.lang.OutOfMemory error: GC overhead limit exceeded I've increased the Xmx/Xms parameters in idea64.exe.vmoptions Now it looks like:

-Xmx4096m 
-Xms1024m 
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow

But it seems like its in Java compiler itself, so apparently it didn't help Somehow I can't find the correct way to declare that. I'd appreciate if someone could show me how to do that correctly.

Thanks and have a nice day

Ataur Rahman Munna
  • 3,887
  • 1
  • 23
  • 34
Mark Bramnik
  • 39,963
  • 4
  • 57
  • 97

1 Answers1

0

See if this link helps you: What are the Xms and Xmx parameters when starting JVMs?

It might cause of a bug which is causing your program to do runaway memory allocation, which will always be resulting in out-of-memory errors no matter how much you increase your heap size. In that case, you will need to look at your code, not at your project options.

Community
  • 1
  • 1
Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32
  • thanks, however I'm looking for an answer how to specify these parameters in the last intelliJ version while compiling a WAR file. IntelliJ runs javac internally so stating in general what Xms and Xmx are doesn't really help. Also I'm only compiling my program and don't run it so tomcat doesn't even start. Thanks in any case – Mark Bramnik Apr 18 '16 at 04:23