首页 > 系统服务 > 详细

Setting Tomcat Heap Size (JVM Heap) in Eclipse

时间:2017-02-28 17:19:19      阅读:329      评论:0      收藏:0      [点我收藏+]

this article picked from:http://viralpatel.net/blogs/setting-tomcat-heap-size-jvm-heap-eclipse/

Recently while running Tomcat under Eclipse for one of the web application I was getting Java Heap memory related error java.lang.OutOfMemoryError.
What needs to be done here basically is to increase the jvm heap size. So for increasing the JVM Heap Size of Tomcat in Eclipse we have to set few VM arguments of the tomcat.

Follow the simple steps to change the Heap Size of Tomcat under Eclipse.
1. Open the Server tab in Eclipse and double click the Tomcat server to open Server Configuration.
技术分享

2. In Server Configuration, click on the Launch Configuration link under General Information.
技术分享

3. Under Arguments tab, add following values in VM arguments.

-Xms64m -Xmx256m

技术分享
To know more about -Xm options read this article.

Setting Tomcat Heap Size (JVM Heap) in Eclipse

原文:http://www.cnblogs.com/rgqancy/p/6479674.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!