When building a Java 8 project with Maven...
mvn clean package
...I get this message:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
How to remove this message?
Join Stack Overflow to learn, share knowledge, and build your career.
|
Compatibility Guide for JDK 8 says that in Java 8 the command line flag Java 7
Java 8
|
||||
|
The JDK 8 HotSpot JVM is now using native memory for the representation of class metadata and is called Metaspace. The permanent generation has been removed. The PermSize and MaxPermSize are ignored and a warning is issued if they are present on the command line. |
|||
|
|
|
In JBoss EAP 6.4, right click on the server and open launch configuration under VM argument you will find
update it to
this will solve your problem. |
||||
|
|
|
-XX:MaxPermSize=size Sets the maximum permanent generation space size (in bytes). This option was deprecated in JDK 8, and superseded by the -XX:MaxMetaspaceSize option. -XX:PermSize=size Sets the space (in bytes) allocated to the permanent generation that triggers a garbage collection if it is exceeded. This option was deprecated un JDK 8, and superseded by the -XX:MetaspaceSize option. |
|||||
|
|
I got similar message when running command line mvn (version 3.3.3) on Linux with Java 8. By opening maven script /$MAVEN-HOME/bin/mvn, found the following line
Where $MAVEN_PROJECTBASEDIR by default is your home directory. So two places you can take a look, first is file $MAVEN_PROJECTBASEDIR/.mvn/jvm.config if it exists. Secondly look at files possibly set up the environment variable MAVEN_OPTS. Candidate files are .bashrc, .bash_profile, .profile and those files included by them such as /etc/profile, /etc/bash.bashrc I located
in .bashrc in my system, change it to
issue resolved |
|||
|
|
|
Please to solve this problem we just have set installed JDK path in
file which under the bin folder of JBoss\Wildfly Server. To solve this we do the following steps:
|
|||||
|
|
For Eclipse users... Click Run —> Run configuration —> are —> set Alternate JRE for 1.6 or 1.7 |
|||
|
|
~\.gradledirectory (@home) and restartAS. see: stackoverflow.com/a/27516679/483588 – Ujjwal Singh Mar 10 '16 at 23:13