Hi folks, we have a single build with currently ~400 projects (incl. builders i.e. POMs having modules only). We are already used to increase the provided memory in MAVEN_OPTS, but lately we have troubles to build at all because of OOMEs (heap). Look at following numbers building with the different Maven versions (latest Oracle JDK 7 on 64-bit Linux):
====================== %< ======================= $ MAVEN_OPTS="-Xmx640m" mvn-3.0.5 validate ... [INFO] ----------------------------------------------------------------- [INFO] BUILD SUCCESS [INFO] ----------------------------------------------------------------- [INFO] Total time: 25.392s [INFO] Finished at: Thu Oct 16 10:02:56 CEST 2014 [INFO] Final Memory: 276M/511M [INFO] ----------------------------------------------------------------- ====================== %< ======================= 3.0.5 fails with 512 only. ====================== %< ======================= MAVEN_OPTS="-Xmx1100m" mvn-3.1.1 validate ... [INFO] ----------------------------------------------------------------- [INFO] BUILD SUCCESS [INFO] ----------------------------------------------------------------- [INFO] Total time: 37.004s [INFO] Finished at: Thu Oct 16 10:13:36 CEST 2014 [INFO] Final Memory: 431M/978M [INFO] ----------------------------------------------------------------- ====================== %< ======================= 3.1.1 fails with 1024m only. ====================== %< ======================= MAVEN_OPTS="-Xmx2500m" mvn-3.2.3 validate ... [INFO] ----------------------------------------------------------------- [INFO] BUILD SUCCESS [INFO] ----------------------------------------------------------------- [INFO] Total time: 55.465 s [INFO] Finished at: 2014-10-16T10:27:42+02:00 [INFO] Final Memory: 1488M/2222M [INFO] ----------------------------------------------------------------- ====================== %< ======================= 3.2.3 fails with 2400m only. The required memory increases dramatically from Maven version to version just to calculate the build order list (the OOME occurs before this list is printed). - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
