myeclipse tomcat内存溢出解决方法

Tomcat直接启动正常,通过myeclipse启动tomcat内存溢出.MyEclipse启动Tomcat无视catalina.bat中设置内存大小的问题。
在 tomcat的catalina.bat中设置set JAVA_OPTS=-Xms128m -Xmx256m,直接使用startup.bat启动tomcat没有问题。
但是在myeclipse中配置tomcat后,通过myeclipse启动就出现内存溢出,之前在catalina.bat中设置的内存似乎没有作用。

则需要做如下设置即可解决:

MyEclipse –> Window –> Preference… –> MyEclipse –> Application Servers –>

Tomcat –> Tomcat 6.X –> JDK –> Optional Java VM arguments :进行设置

设置的内容:-Xms256m -Xmx512m

//from http://hi.baidu.com/dobodo/item/5cc9df5168c81edfd48bacb5

This entry was posted in Computer, Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s