How to set -XX:PermSize=64m in maven-compiler-plugin?

前端 未结 3 1664
梦谈多话
梦谈多话 2020-12-21 08:48

I faild in setting the permsize or maxpermsize with the maven-compiler-plugin (v3.2).

I tried it like this:


org.apache         


        
3条回答
  •  一向
    一向 (楼主)
    2020-12-21 09:03

    From the javac documentation:

    -Joption Pass option to the java launcher called by javac. For example, -J-Xms48m sets the startup memory to 48 megabytes.

    Based on the above:

    
      -J-XX:PermSize=128m
      -J-XX:MaxPermSize=256m
    
    

提交回复
热议问题