|
该用户从未签到
|
沙发
发表于 2016-11-23 10:10:09
|只看该作者
不知道你用的什么开发工具,如果是在Eclipse菜单栏中Window ——》Preferences ——》Server ———》 Runtime Environment;
2 |0 E: ?! [+ k0 r& [! n选择您用的Tomcat 然后点击Edit...弹出Edit Server Runtime Ecvironment 下面JRE选项后面的Installed JREs...点击弹出Installed JREs;在选中您用的Jre在点击Edit..在Defaul VM Arguments:中填入-Xms256m -Xmx512m
5 ^2 i' O+ D$ x4 o% S' D: R( K1 _( d c {1 [& e! k, P1 `3 w1 k: T
如果要在myeclipse中启动tomcat,上述的修改就不起作用了,可如下设置:
. ^$ n3 B+ y' N7 V. }Myeclipse->preferences->myeclipse->servers->tomcat->tomcat×.×->JDK面板中的: i9 Q3 j) H* l
Optional Java VM arguments中添加:-Xms256m -Xmx512m -XX ermSize=64M -XX:MaxPermSize=128m |
|