Exception in thread "Druid-ConnectionPool-Destory" java.lang.OutOfMemoryError: PermGen space

来源:互联网 发布:单片机中断向量地址是 编辑:程序博客网 时间:2024/06/05 20:02
先在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启动虚拟机参数就可以了 

-Xms1200m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m





0 0
原创粉丝点击