最近公司接了一个客户项目,使用的环境是websphere6.1.0.0+db2 v9.项目中数据库连接池使用的是c3p0 v0.9.1.2。
可是现在系统老是死机,平均一天1次到2次。一直找不到具体原因所在,查看错误日志如下:
------Start of DE processing------ = [09-3-22 10:20:42:187 CST] , key = java.io.IOException com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters 765
Exception = java.io.IOException
Source = com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters
probeid = 765
Stack Dump = java.io.IOException: Async IO operation failed, reason: RC: 10054 远程主机强迫关闭了一个现有的连接。
at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:443)
at com.ibm.io.async.AsyncSocketChannelHelper.read(AsyncSocketChannelHelper.java:194)
at com.ibm.ws.tcp.channel.impl.AioSocketIOChannel.readAIOSync(AioSocketIOChannel.java:205)
at com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncReadRequest(AioTCPReadRequestContextImpl.java:150)
at com.ibm.ws.tcp.channel.impl.TCPReadRequestContextImpl.read(TCPReadRequestContextImpl.java:109)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.fillABuffer(HttpServiceContextImpl.java:4126)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readSingleBlock(HttpServiceContextImpl.java:3366)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readBodyBuffer(HttpServiceContextImpl.java:3485)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl.getRequestBodyBuffer(HttpInboundServiceContextImpl.java:1680)
at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.bufferIsGood(WCCByteBufferInputStream.java:105)
at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.read(WCCByteBufferInputStream.java:78)
at com.ibm.ws.webcontainer.srt.http.HttpInputStream.read(HttpInputStream.java:286)
at com.ibm.ws.webcontainer.servlet.RequestUtils.parsePostData(RequestUtils.java:297)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters(SRTServletRequest.java:1336)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.getParameter(SRTServletRequest.java:994)
at com.elearningch.lms.web.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:95)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
因为几处连接数据库时间过长,导致等待连接的客户端出错,服务器宕机。
分享到:
相关推荐
为文章 Async Await 异常处理 所写,主要展示四种典型情况下的异常处理。 async await; task.wait(); async 不 await; async void
Flink 1.2中引入了Async IO(异步IO)来加快flink与外部系统的交互性能,提升吞吐量。[FLIP-12: Asynchronous I/O Design and Implementation]。 其设计的核心是对原有的每条处理后的消息发送至下游operator的执行...
最近 Async IO, 也就是异步IO的一些标准语法也已经包含在了Rust 稳定版本里面比如 async 和 await 关键字. 可我之前在学习 Async IO的过程当中, 一直有些疑惑. 比如那些经常听说的库 tokio, mio, futures ...
网络IO模型:同步IO和异步IO,阻塞IO和非阻塞IO
async-global-executor-在async-executor和async-io之上构建的全局执行器async-global-executor在async-executor和async-io之上构建的全局执行器功能async-io:如果启用,则async-global -executor将在内部使用async...
Python:Async IO Modern Forms API Client [![GitHub版本] [releases-shield]] [版本]![Project Stage] [project-stage-shield]![Project Maintenance] [maintenance-shield] [![构建状态] [build-shield]] ...
安装将此行添加到应用程序的 Gemfile 中: gem 'async-io' 然后执行: $ bundle或者自己安装: $ gem install async-io用法基本回显服务器(来自spec/async/io/echo_spec.rb ): require 'async/io'def echo_server...
讯息系统使用Java 7 Async Io的基于Java的消息传递系统
盖奥 介绍 对于典型的golang网络程序,您首先要conn := lis.Accept()获取连接,然后go func(net.Conn... 对于拥有超过10K个连接且频繁出现短消息(例如,过使用内部交换缓冲区,可以节省buf:=make([]byte,> C10K并发连
Laravel开发-laravel-async-queue Laravel/Oracle的异步队列驱动程序(推到后台)
执行第一次使用Async或Timer ,将产生一个名为“ async-io”的线程。 该线程的目的是等待操作系统报告的I / O事件,然后唤醒可恢复的I / O或计时器上阻塞的适当期货。 为了等待下一个I / O事件,“ async-io”线程在...
网上async with和async for的中文资料比较少,我把PEP 492中的官方陈述翻译一下。 异步上下文管理器”async with” 异步上下文管理器指的是在enter和exit方法处能够暂停执行的上下文管理器。 为了实现这样的功能,...
Visual Studio C++ Opencv ASYNC
Async是基于nio4r和定时器的Ruby的可组合的异步I/O框架
Android Async-Http Demo
很好用的Async32,不用多说,你用了就知道啦。
async-php-8-io-http 真正的异步PHP I / O和HTTP,无需框架,扩展程序或令人讨厌的代码。 最终将使用PHP v8.1 Fibers。
async/await异步处理
Apress - Pro Async Programming in .NET
mongodb-async-driver-2.0.1 jar包