处理方法:
VM参数中添加如下配置:
-server -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+PrintGCDetails -Xloggc:%M2_HOME%/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%M2_HOME%/java_pid<pid>.hprof
mvn jetty:run出现OutOfMemoryError: PermGen space的处理
mvn jetty:run出现OutOfMemoryError: PermGen space的处理
其中参数说明如下:
-XX:+CMSPermGenSweepingEnabled : 允许permgenspace的垃圾回收
-XX:+CMSClassUnloadingEnabled : allows the garbage collector to remove even classes from the memory
-XX:PermSize=256M -XX:MaxPermSize=256M : raises the amount of memory allocated to the permgenspace
 
 
 
试过在系统环境变量中添加 MAVEN_OPTS="-Xms40m -Xmx512m -XX:PermSize=512m" 不行,在eclipse.ini文件中添加 -Xms40m -Xmx512m -XX:PermSize=512m 也不行。

相关文章:

  • 2021-07-09
  • 2022-01-12
  • 2021-11-09
  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
  • 2021-10-13
猜你喜欢
  • 2021-06-15
  • 2021-04-07
  • 2021-07-25
  • 2021-04-02
  • 2021-11-26
  • 2021-09-09
  • 2021-08-14
相关资源
相似解决方案