Um nun den Speicher zu erhöhen, einfach den Inhalt "-Xms128M -Xmx512M" in die Umgebungsvariable speichern.
Linux: export MAVEN_OPTS="-Xms128M -Xmx512M"
Windows: SET MAVEN_OPTS="-Xms128M -Xmx512M"
Wobei Xms die Initialgröße angibt und Xmx die Maximalgröße.
Java Hilfe zu den Optionen:
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:
set search path for bootstrap classes and resources
-Xbootclasspath/a:
append to end of bootstrap class path
-Xbootclasspath/p:
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:
-Xbatch disable background compilation
-Xms
-Xmx
-Xss
-Xprof output cpu profiling data
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)
-Xcheck:jni perform additional checks for JNI functions
-Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default)
-Xshare:on require using shared class data, otherwise fail.
The -X options are non-standard and subject to change without notice.
Maven
Java
Keine Kommentare:
Kommentar veröffentlichen