java实习生使用tomcat常见的问题

1. tomcat启动超时问题 ,错误信息如下

Server Tomcat v7.0 Server at localhost was unable to start within 3 seconds. If the server requires more time, try increasing the timeout in the server editor.

出错原因:公司里的大型项目启动需要时间往往要很久,默认的tomcat启动时间不足以让项目启动,需要延长tomcat的启动时间。

解决方案:

2. OutOfMemoryError: Java heap space  错误

错误的原因仍然是项目太大导致的分配的内存不够用,需要增加分配的运行内存。

原文地址:https://www.cnblogs.com/mayiaction/p/10510245.html