在eclipse中经常报Exception in thread "http-8080-3" java.lang.OutOfMemoryError: PermGen space内存溢出的情况,解决办法:
先在eclipse安装目录中将eclipse的启动参数调大一些
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=
1.6
-Xms128m
-Xmx1024m
|
然后在eclipse的server栏,找到tomcat选项,打开tomcat的配置
在arguments 标签框下面的VM Arguments 框后面接上自己的tomcat启动虚拟机参数就可以了