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 也不行。