Out of Memory Error using Tomcat

I have configured my Tomcat Server in the Run/Debug Configurations screen. I added the VM parameters (-Xms768m -Xmx1024m) also. Then I click Run and I get an Out of Memory error during compiling. Am I passing in the parameters incorrectly to increase memory? Or how might I fix this?

2 comments
Comment actions Permalink

Compiling is done by IDEA, not by Tomcat. So you should increase the memory limit of IDEA. This can be done by editing the file ${idea.home}/bin/idea.exe.vmoptions.

0
Comment actions Permalink

MF> Compiling is done by IDEA, not by Tomcat. So you should increase the
MF> memory limit of IDEA. This can be done by editing the file
MF> ${idea.home}/bin/idea.exe.vmoptions.

If the OOM is in the compiler, it has it's own memory settings in Settings->Compiler->Maximum
heap size


0

Please sign in to leave a comment.