Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8d75012

Browse filesBrowse files
author
lxn348567248
committed
如何处理 java.lang.outOfMemoryError PermGen space error
1 parent b7ce650 commit 8d75012
Copy full SHA for 8d75012

File tree

Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+28
-0
lines changed
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
##如何处理 java.lang.outOfMemoryError PermGen space error
2+
3+
###问题
4+
5+
最近,我在过运行我的web应用时得到:java.lang.OutOfMemoryError: PermGen space。
6+
我的应用用一个典型的 Hibernate/JPA + IceFaces/JSF的应用.运行于Tomcat6.0和jdk1.6.我发布了多次以后,产生了这个错误。
7+
8+
是什么原因造成的,我如何避免?我怎样修复?
9+
10+
11+
#回答
12+
13+
14+
解决的方案是当TomeCat启时,在jvm的的命令行添加参数
15+
16+
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
17+
18+
19+
你也可以停止tomcat的服务,直接进入Tomcat/bin目录,运行tomcat6w.exe.在Java的标签下,参加上面的参数。单击"OK",重新启动Tomcat的服务.
20+
21+
22+
如果你得到不一个未安装的服务,你可以运行:
23+
24+
tomcat6w //ES//servicename
25+
26+
servicename的名字你右以在services.msc中查看。
27+
28+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.