当前位置: 技术问答>java相关
JSP连Oracle数据库的问题
来源: 互联网 发布时间:2015-07-18
本文导语: 有两三个页面,打开时特慢,服务器硬盘狂响,一下就把oracle的连接资源耗尽,服务器端提示: 2002-07-18 01:49:24 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer ...
有两三个页面,打开时特慢,服务器硬盘狂响,一下就把oracle的连接资源耗尽,服务器端提示:
2002-07-18 01:49:24 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.socketAvailable(Compiled Code)
at java.net.PlainSocketImpl.available(Compiled Code)
at java.net.SocketInputStream.available(Compiled Code)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
请问这是什么意思?怎么解决?
2002-07-18 01:49:24 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.socketAvailable(Compiled Code)
at java.net.PlainSocketImpl.available(Compiled Code)
at java.net.SocketInputStream.available(Compiled Code)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
请问这是什么意思?怎么解决?
|
你看看他连接数据库的程序,是否线程开了后一直没关闭
还有是否连接不断地开新的数据库连接?
还有是否连接不断地开新的数据库连接?