java - Invalid maximum heap size: -Xmx512m -
i have tried possible heap sizes jvm, keep getting below exception.
admin pc@admin-pc mingw64 /c/controller/opendaylight (master) $ /c/apache-maven-3.3.9/bin/mvn clean install error: not create java virtual machine. error: fatal exception has occurred. program exit. invalid maximum heap size: -xmx512m
note - don't mark duplicate, because have tried solutions here unable find final fix this.
edit notes- adding debug information
$ bash -x /c/apache-maven-3.3.9/bin/mvn clean install + '[' -z '' ']' + '[' -f /etc/mavenrc ']' + '[' -f '/c/users/admin pc/.mavenrc' ']' + cygwin=false + darwin=false + mingw=false + case "`uname`" in ++ uname + mingw=true + '[' -z 'c:\program files\java\jdk1.7.0_80' ']' + '[' -z 'c:\apache-maven-3.3.9' ']' + false + true + '[' -n 'c:\apache-maven-3.3.9' ']' ++ cd 'c:\apache-maven-3.3.9' ++ pwd + m2_home=/c/apache-maven-3.3.9 + '[' -n 'c:\program files\java\jdk1.7.0_80' ']' ++ cd 'c:\program files\java\jdk1.7.0_80' ++ pwd + java_home='/c/program files/java/jdk1.7.0_80' + '[' -z '/c/program files/java/jdk1.7.0_80' ']' + '[' -z '' ']' + '[' -n '/c/program files/java/jdk1.7.0_80' ']' + '[' -x '/c/program files/java/jdk1.7.0_80/jre/sh/java' ']' + javacmd='/c/program files/java/jdk1.7.0_80/bin/java' + '[' '!' -x '/c/program files/java/jdk1.7.0_80/bin/java' ']' + '[' -z '/c/program files/java/jdk1.7.0_80' ']' + classworlds_launcher=org.codehaus.plexus.classworlds.launcher.launcher + false ++ find_maven_basedir ++ local basedir ++ local wdir +++ pwd ++ basedir=/c/controller/opendaylight +++ pwd ++ wdir=/c/controller/opendaylight ++ '[' /c/controller/opendaylight '!=' / ']' ++ '[' -d /c/controller/opendaylight/.mvn ']' +++ cd /c/controller/opendaylight/.. +++ pwd ++ wdir=/c/controller ++ '[' /c/controller '!=' / ']' ++ '[' -d /c/controller/.mvn ']' ++ basedir=/c/controller ++ break ++ echo /c/controller + maven_projectbasedir=/c/controller ++ concat_lines /c/controller/.mvn/jvm.config ++ '[' -f /c/controller/.mvn/jvm.config ']' +++ tr -s '\n' ' ' ' echo '-xmx512m -xmx512m -xx:maxpermsize=256m' + false + export maven_projectbasedir + maven_cmd_line_args=' clean install' + export maven_cmd_line_args + exec '/c/program files/java/jdk1.7.0_80/bin/java' $'-xmx512m\r' $'\r' -xmx512m -xx:maxpermsize=256m -classpath /c/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar -dclassworlds.conf=/c/apache-maven-3.3.9/bin/m2.conf -dmaven.home=/c/apache-maven-3.3.9 -dmaven.multimoduleprojectdirectory=/c/controller org.codehaus.plexus.classworlds.launcher.launcher clean install error: not create java virtual machine. error: fatal exception has occurred. program exit. invalid maximum heap size: -xmx512m
Comments
Post a Comment