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,在这里添加