tomcat问题

本文主要讨论了Tomcat服务器遇到的两个常见问题:内存溢出和启动失败。针对内存溢出,解决方案是调整Tomcat启动脚本中的JAVA_OPTS参数,增大堆内存和 PermGen 空间。对于启动失败,特别是从Eclipse中启动时找不到JRE的情况,检查并确保JDK环境变量配置正确,或者在相关文件中添加JDK和JRE的路径。
摘要由CSDN通过智能技术生成

tomcat问题

1、内存溢出问题:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “RMI TCP Connection(idle)”
Exception in thread “RMI TCP Connection(idle)” Exception in thread “RMI TCP Connection(idle)”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “RMI TCP Connection(idle)”
Exception in thread “RMI TCP Connection(idle)” Exception in thread “RMI TCP Connection(idle)” Exception in thread "RMI
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “RMI TCP Connection(idle)”
Exception in thread “RMI TCP Connection(idle)”
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “RMI TCP Connection(idle)”
在这里插入图片描述解决方法,修改tomcat的启动文件中的堆内存大小,文件在这里插入图片描述在这里插入图片描述
set JAVA_OPTS=-server -Xms4096m -Xmx4096m -XX:PermSize=256M -XX:MaxPermSize=1024m
2、tomcat启动问题
直接tomcat启动,点击startup.bat,闪退,一般原因是找不到jdk,看下jdk配置环境变量了吗,如果配置了,还闪退,在这个文件里,在这里插入图片描述
添加jdk,jre的路径然后重启就好了。
如果在eclipse中启动tomcat,报找不到jre,在这里添加

在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值