`

Tomcat out of memory解决

阅读更多

Tomcat 默认可以使用的内存为 128MB ,在较大型的应用项目中,这点内存是不够的,需要调大。

   Windows 下,在文件 {tomcat_home}/bin/catalina.bat Unix 下,在文件 {tomcat_home}/bin/catalina.sh 的前面,增加如下设置:

   JAVA_OPTS='-Xms 【初始化内存大小】 -Xmx 【可以使用的最大内存】 '

  需要把这个两个参数值调大。例如:

rem ----- Execute The Requested Command ---------------------------------------

set JAVA_OPTS='-Xms256m -Xmx512m'



  表示初始化内存为 256MB ,可以使用的最大内存为 512MB

分享到:
评论

相关推荐

    tomcat out of memory

    tomcat out of memory,近来web经常out of memory down机,查找的一些资料

    tomcat out of memory solution

    tomcat out of memory solution

    tomcat 出现 OutOfMemoryError 的解决方法

    tomcat 出现 OutOfMemoryError 的解决方法

    设置Tomcat的初始启动内存

    设置Tomcat的初始启动内存方法,会解决Out Of Memory的问题

    Tomcat_启动参数设置

    Tomcat默认可以使用的内存很小,在较大型的应用项目中,这点内存是...常见的问题是报Tomcat内存溢出错误,Out of Memory(系统内存不足)的异常,从而导致客户端显示500错误,一般调整Tomcat的使用内存即可解决此问题。

    OutOfMemoryError-PermGen-space-的解决方案亲测有效

    OutOfMemoryError-PermGen-space-的解决方案亲测有效

    一个JSP页面导致的tomcat内存溢出的解决方法

    但是用loadrunner压测了几分钟之后,分配了1024M堆内存的tomcat居然包heap space outofmemory!这个页面的代码如下: 代码如下: <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″ ...

    tomcat8 + nginx + memcached + cas 实现负载均衡的配置包

    Configuration for the default TicketRegistry which stores the tickets in-memory and cleans them out as specified intervals. <!-- memcached 配置开始 --> <!-- Ticket Registry --> ...

    tomcat-5.5.23

    ============================================ <br>Out of the box, Tomcat 5.5 requires the Java 2 Standard Edition Runtime Environment (JRE) version 5.0 or later. However, you can also run Tomcat...

    Java 内存溢出解决办法

    Java内存溢出解决办法 加大Tomcat使用Jvm内存(转载) 注重版权 Caused by: java lang OutOfMemoryError: Java heap space 错误原因及解决方法

    java.lang.OutOfMemoryError解决办法

    报错 java.lang.OutOfMemoryError: PermGen space 报错 java.lang.OutOfMemoryError: Java heap 启动报错java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler JAVA_OPTS="-server -Xms800m ...

    测试培训教材

    You can also view the system information that has been retrieved—such as CPU, memory, and processes running on the machine—and an image of the machine executing the system test. 6、测试用例设计、...

    pro_apache_third_edition..pdf

    Apache: The Anatomy of a Web Server.........................................................1 The Apache Source ...........................................................................................

Global site tag (gtag.js) - Google Analytics