tomcat - JIRA java.lang.OutOfMemoryError : PermGen space 错误

标签 tomcat jira permgen

我在 Win7 上从 war 文件运行 JIRA。

1) Java 6

2) Tomcat 6

3) 吉拉5

我昨天安装了 JIRA。我昨天能够进入 JIRA Web 应用程序并配置 JIRA,直到我输入许可证 key 并且 TomCat 给我 PermGen 空间错误。

到目前为止,我已经尝试了数小时的谷歌搜索并尝试了一些东西,但似乎没有任何效果。目前我的 tomcat->catalina.sh 文件中有这个片段。是的,我尝试将其放入 setenv.sh(bat) 文件,但仍然出现同样的错误。到目前为止还无法让 Jira 重新启动并运行。

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 
-server -Xms1536m -Xmx1536m
-XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m 
-XX:MaxPermSize=1024m -XX:+DisableExplicitGC"

错误:

2012-06-02 12:02:52,821 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\streams-api-5.1.0.jar (1337537820000) created
2012-06-02 12:02:52,828 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\streams-core-plugin-5.1.0.jar (1337537822000) created
2012-06-02 12:02:52,839 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\streams-inline-actions-plugin-5.1.0.jar (1337537822000) created
2012-06-02 12:02:52,845 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\streams-jira-inline-actions-plugin-5.1.0.jar (1337537822000) created
2012-06-02 12:02:53,068 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\streams-jira-plugin-5.1.0.jar (1337537820000) created
2012-06-02 12:02:53,083 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\streams-spi-5.1.0.jar (1337537822000) created
2012-06-02 12:02:53,093 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\streams-thirdparty-plugin-5.1.0.jar (1337537822000) created
2012-06-02 12:02:53,113 main INFO      [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: C:\JIRA\home\plugins\.bundled-plugins\workflow-designer-plugin-2.5.5.jar (1337537818000) created
2012-06-02 12:03:01,127 Spring executor 1 INFO      [plugins.monitor.rrd4j.RrdUpdater] Reusing existing RrdDb: C:\JIRA\home\monitor\ConnectionPoolGraph.rrd4j
2012-06-02 12:03:01,220 Spring executor 1 INFO      [plugins.monitor.rrd4j.RrdUpdater] Reusing existing RrdDb: C:\JIRA\home\monitor\DatabaseReadWritesGraph.rrd4j
2012-06-02 12:03:01,319 Spring executor 1 INFO      [jira.plugins.monitor.MonitoringScheduler] Scheduling metrics collector to run every 10000ms...
2012-06-02 12:03:50,998 Spring executor 4 WARN      [beans.factory.support.DefaultListableBeanFactory] FactoryBean threw exception from getObjectType, despite the contract saying that it should return null if the type of its object cannot be determined yet
java.lang.OutOfMemoryError: PermGen space

请注意 Tomcat 在“计划指标收集器每 10000 毫秒运行...”时停止 49 秒。

最佳答案

当从 apache-tomcat\bin\tomcat6.exe 运行 Tomcat 作为服务 时,从 tomcat6w.exe 打开 Tomcat GUI 并在 Java 中的 Java 选项中添加以下行标签:

-XX:MaxPermSize=512m

关于tomcat - JIRA java.lang.OutOfMemoryError : PermGen space 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10861393/

相关文章:

java - Wicket + Tomcat安装中 "resources"上下文路径如何协同工作

java - 我需要在 jboss 运行后保留一个值。我需要在tomcat启动之前使用

tomcat - 如何在镜像构建时/构建后自动运行 docker 容器?

python - JIRA-Python 的基本身份验证不再适用于 REST API 调用。接下来是什么?

tomcat - AKKA-http部署

api - 如何为Jira获取OAuth token

python - 新创建的问题(JIRA 和 python)

java - Maven surefire permgen 空间不足

java - PermGen 和 Metaspace 有什么区别?

java - PermGen 空间的意义