What kind of "network" module are you talking about? Is it a simple war and has a packing type war?
If you are not using the Google Web Toolkit (GWT), you do not need gwt.extraJvmArgs
Building a compilation process might not be a good idea, because it starts a second process that completely ignores MAVEN_OPTS , which makes analysis more difficult.
So I would try increasing Xmx by setting MAVEN_OPTS
export MAVEN_OPTS="-Xmx3000m"
And do not decompose the compiler into another process
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin>
Increasing -XX:MaxPermSize=512m not required, because if the cause of the problem is the size -XX:MaxPermSize=512m , then I expect the error java.lang.OutOfMemoryError: PermGen space
If this does not solve your problem, you can create heap dumps for further analysis by adding -XX:+HeapDumpOnOutOfMemoryError . Alternatively, you can use jconsole.exe in your java bin directory to connect to jvm at compile time and see what happens inside the jvm heap.
Another idea (maybe stupid) that came to me, do you have enough RAM inside your machine? Determining the amount of memory is good, but if your host has only 4 GB, and then you may have a problem that Java cannot use certain memory, because it is already used by the OS, Java, MS-Office ...
vach Sep 22 2018-12-12T00: 00Z
source share