java - 经常出现Connection Reset,求大神指教~
迷茫
迷茫 2017-04-18 09:37:39
0
3
341
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
洪涛

What method do you use to connect data? JDBC direct connection, DBCP, C3P0?


I also encountered this problem before (the latter two methods), because I don’t use C3P0 now. Here are my DBCP settings:

maxIdle="20"
maxWait="120000"
testOnBorrow="true"
validationQuery="SELECT 1"

After setting these 4 parameters, my server is scheduled to restart every morning when no one is around. The key are testOnBorrow and validationQuery.

PHPzhong

Try increasing the connection pool of tomcat

左手右手慢动作

Probably the volume of requests is too large, tomcat can’t handle it, and nginx (if there is one in front of tomcat) has lost some requests.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!