这跟server.xml 的配置有关吗 ?
<Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false"><Context path="/yhwl" docBase="D:\yhwl0903"
        debug="5" reloadable="true" crossContext="true">  <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="localhost_DBTest_log." suffix=".txt"
             timestamp="true"/>       
       <Resource name="jdbc/yhwl"
               auth="Container"
               type="javax.sql.DataSource"/>  <ResourceParams name="jdbc/yhwl">
    <parameter>
      <name>factory</name>
      <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>    <!-- Maximum number of dB connections in pool. Make sure you
         configure your mysqld max_connections large enough to handle
         all of your db connections. Set to 0 for no limit.
         -->
    <parameter>
      <name>maxActive</name>
      <value>10000</value>
    </parameter>    <!-- Maximum number of idle dB connections to retain in pool.
         Set to -1 for no limit.  See also the DBCP documentation on this
         and the minEvictableIdleTimeMillis configuration parameter.
         -->
    <parameter>
      <name>maxIdle</name>
      <value>300</value>
    </parameter>
    ...

解决方案 »

  1.   

    是在什么情况下出现的连接被对等重置,在连接池中加入碰到reset的情况重建连接的处理   
    再看看防火墙
      

  2.   

    经常出现的Connection reset by peer: 原因可能是多方面的,不过更常见的原因是: 
    ①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉; 
    ②:客户关掉了浏览器,而服务器还在给客户端发送数据; 
    ③:浏览器端按了Stop
      

  3.   

    那这种情况,有何应对方法呢,或者是说怎么捕获它抛的错呢,不让它输出到tomcat 上???
    望指教 ...
      

  4.   

    我们在做JSF的时候日期控件也会抱着个错误,但是并不会影响程序
      

  5.   


    1,你必须找到爆出异常的程序,比如你的这个就是 org.apache.jsp.xxd.user.yydywl.index_jsp._jspService(index_jsp.java:142)
    2,最后面的142是出错的行数,注意是index_jsp 不是 index, 这个文件在 tomcat/works/catalina/localhost下面有
      然后你可以对照着找到index.jsp里面的行数,并加上 try catch 
      

  6.   

    呵呵,我明白你的意思,java2000_net,但是,这种错误不是预知的啊,今天有可能在这个页面的142行,明天就有可能在那个页面的87行,这不是固定的,所以 ...
    同时,感谢你的try-catch ....