不会健身的程序员
不是好作家

was启动应用超时,线程挂起

问题现象

在server下的logs/SystemOut.log下发现如下错误:

ThreadMonitor W   WSVR0605W: Thread "Default : 0" (<ThreadID>) has been active for xxx milliseconds and may be hung.  There is/are 1 thread(s) in total in the server that may be hung.
    at java.lang.Thread.sleep(Native Method)
    at java.lang.Thread.sleep(Thread.java:939)
    at com.ibm.j2ca.base.internal.PollEventManagerWorker.run(PollEventManagerWorker.java:96)
    at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
    at com.ibm.ejs.j2c.work.AsyncWorkProxy.run(AsyncWorkProxy.java:136)
    at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:268)
    at java.security.AccessController.doPrivileged(AccessController.java:192)
    at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:768)
    at com.ibm.ws.asynchbeans.ExecutionContextImpl.go(ExecutionContextImpl.java:85)
    at com.ibm.ejs.j2c.work.AsyncWorkProxy.run(AsyncWorkProxy.java:90)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

引起的原因

The resource adapter has one mechanism poll period. It is considered the rate (in milliseconds) at which to poll the enterprise information system (EIS) event store for new inbound events. The poll cycle is established at a fixed rate, meaning that if execution of the poll cycle is delayed for any reason, the next cycle will occur immediately to “catch up”. During the poll period, the polling thread will be sleeping.
Once the time is calculated to 60000 milliseconds, the WebSphere Application Server thread monitor regards this polling thread as hung and throws the exception.

解决办法

was控制台>>服务器>>服务器类型>>WebSphere Application Server>>点击{需要修改的服务器}

服务器基础结构>>管理>>定制属性

点击新建

在名称中输入com.ibm.websphere.threadmonitor.interval
值输入一个小于或者等于0的数

点击应用

最后重启server即可

参考资料

赞(0)
转载请注明出处:林俊龙博客 » was启动应用超时,线程挂起

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

年年岁岁花相识,岁岁年年人不同

给我留言网站地图

谢主隆恩

支付宝扫一扫打赏

微信扫一扫打赏