简体   繁体   English

不断获取java.lang.OutOfMemoryError:PermGen空间错误

[英]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. wqvim命令,用于保存和退出。 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.

相关问题 常量java.lang.OutOfMemoryError:PermGen空间Arquillian + Wildfly 8.1 - Constant java.lang.OutOfMemoryError: PermGen space Arquillian + Wildfly 8.1 在PowerMockito中运行Cobertura并抛出java.lang.OutOfMemoryError:PermGen空间 - Running Cobertura with PowerMockito throwing java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError:与Jenkins和Maven的PermGen - java.lang.OutOfMemoryError: PermGen with Jenkins and Maven JBoss EAP 6.1上的Hotswap-agent - java.lang.OutOfMemoryError:PermGen space - Hotswap-agent on JBoss EAP 6.1 - java.lang.OutOfMemoryError: PermGen space Maven“线程中的异常”http-bio-8080-exec-32“java.lang.OutOfMemoryError:PermGen space” - Maven “Exception in thread ”http-bio-8080-exec-32“ java.lang.OutOfMemoryError: PermGen space” java.lang.OutOfMemoryError:PermGen(GWT + NetBeans + Maven) - java.lang.OutOfMemoryError: PermGen (GWT + NetBeans + Maven) 在OS X 10.10.1优胜美地上构建Hive时出错:java.lang.OutOfMemoryError:Java堆空间 - Error Building Hive on OS X 10.10.1 Yosemite: java.lang.OutOfMemoryError: Java heap space 如何在JENKINS中处理线程“ main”中的“ [ERROR]异常”(主要是java.lang.OutOfMemoryError:Java堆空间)? - How to handle “[ERROR] Exception in thread ”main“ java.lang.OutOfMemoryError: Java heap space” in JENKINS? 获取java.lang.OutOfMemoryError:编译AspectJ项目时出现Java堆空间错误 - Get java.lang.OutOfMemoryError: Java heap space error when compiling aspectJ project java.lang.OutOfMemoryError:Maven 中的 Java 堆空间 - java.lang.OutOfMemoryError: Java heap space in Maven
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM