[英]Keep getting java.lang.OutOfMemoryError: PermGen space error
I am required to start few servers locally. 我需要在本地启动一些服务器。 I keep getting the "java.lang.OutOfMemoryError: PermGen space" error every now and then.
我一直不时收到“ java.lang.OutOfMemoryError:PermGen空间”错误。 I tried to increase my JVM size by the following command.
我试图通过以下命令来增加JVM的大小。 export MAVEN_OPTS="-Xmx128m -XX:MaxPermSize=512m"
export MAVEN_OPTS =“-Xmx128m -XX:MaxPermSize = 512m”
After running the above command, I see that the MAVEN_OPTS is correctly updated. 运行上述命令后,我看到MAVEN_OPTS已正确更新。 $ echo $MAVEN_OPTS -Xmx128m -XX:MaxPermSize=512m
$ echo $ MAVEN_OPTS -Xmx128m -XX:MaxPermSize = 512m
However, after a few minutes from starting the servers I get an out of memory error. 但是,在启动服务器几分钟后,出现内存不足错误。
$ echo $MAVEN_OPTS -Xmx512m:wq $ echo $ MAVEN_OPTS -Xmx512m:wq
Can someone please tell me what causes the properties to change and what does the :wq come from? 有人可以告诉我是什么导致属性更改,以及:wq来自什么?
wq
is the vim
command for save and exit. wq
是vim
命令,用于保存和退出。 Looks like your jvm options got corrupted with that. 看来您的jvm选项已损坏。 Can you remove that and retry.
您可以删除该内容并重试。
Increasing -XX:MaxPermSize
is the correct thing to do here. 增大
-XX:MaxPermSize
是正确的做法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.