我几乎是随机找到解决方案。
没有任何相关内容:
org.apache.coyote.http11.AbstractHttp11Processor进程
但这是一个JDBC问题。.8小时后连接关闭,为此我在Servlet中没有任何错误。
对我来说,解决方案是在应用程序的上下文中添加一些行:
我补充说:
url="jdbc:mysql://127.0.0.1:3306/test?autoReconnect=true"dontTrackOpenResources="true"testWhileIdle="true"timeBetweenEvictionRunsMillis="300000"
现在是我的完整上下文:
<Context> <Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="100" maxWait="30000" username="test" password="bestpassword" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://127.0.0.1:3306/test?autoReconnect=true" removeAbandoned="true" removeAbandonedTimeout="10" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" fairQueue="true" dontTrackOpenResources="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="300000" /></Context>
我的服务器已经一周没有崩溃了,我相信它不会再崩溃了。



