使用SQLServer 2008數據庫在Websphere Application Server 7上運行我的應用程序。當SQLServer處於100%時,每個連接都掛起並填充連接池。這導致每個線程也掛起。 10分鐘後,日誌填滿了:爲什麼連接不超時?
00000042 ThreadMonitor W WSVR0605W: Thread "WebContainer : 11" (00000049) has been active for 742352 milliseconds and may be hung. There is/are 14 thread(s) in total in the server that may be hung.
連接池正在使用JTDS並且超時設置爲300秒。
我會在300秒後按下每個連接都會拋出一個異常,然後使所有線程解除掛起?
它被稱爲「連接超時」,這是它的文檔:指定連接請求保持活動的秒數,之後WebSphere Application Server發出ConnectionWaitTimeout異常。僅當您設置最大池大小屬性時,應用程序服務器纔會對此值執行操作。 – Tommy 2012-08-02 13:53:21