这跟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>
...
<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>
...
解决方案 »
- Struts2修改信息的疑惑
- hql语句的定义
- 微博实时更新功能
- 关于:Hibernate使用NativeSQL查询类型为char的columns的几个疑问?!
- 有哪位大虾知道好点的UML论坛或者学习网站啊?
- Struts+Hibernate+Spring时的一个session问题?
- 执行JAVA C:\javaSample.class后的问题
- JAVA和软件窗口之间的数据传输
- 在开发ejb中,本地(local)接口、远程(Remote)接口、Home接口、LocalHome接口这些是放在都放在应用服务器中吗,需不需要放在客服端中?
- 在使用JBUILDER开发CMP2.0是在bean类中,jbuilder会自动建立一个
- 在javascript中嵌入java脚本代码
- 求助:java_JDBC 批处理错误
再看看防火墙
①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;
②:客户关掉了浏览器,而服务器还在给客户端发送数据;
③:浏览器端按了Stop
望指教 ...
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
同时,感谢你的try-catch ....