您好,登錄后才能下訂單哦!
今天下午開發說合同管理系統開發環境的weblogic一直啟動不了:
如果正常啟動日志大概如下:
####<2013-12-14 上午10時28分48秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001177> <Creating Connection Pool named conn_contract, URL = jdbc:sybase:Tds:10.17.192.123:5000/contract2011?charset=cp936, Properties = {user=sa, url=jdbc:sybase:Tds:10.17.192.123:5000/contract2011?charset=cp936, networkProtocol=Tds, portNumber=5000, userName=sa, databaseName=contract2011?charset=cp936, serverName=10.17.192.123}.>
####<2013-12-14 上午10時28分48秒 CST> <Info> <Common> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-000625> <The application has disabled periodic testing of free resources in pool "conn_contract".>
####<2013-12-14 上午10時28分49秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001068> <Connection for pool "conn_contract" created.>
####<2013-12-14 上午10時28分49秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001132> <Initialized statement cache of size "10" for connection in pool "conn_contract".>
####<2013-12-14 上午10時28分49秒 CST> <Info> <Common> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-000628> <Created "1" resources for pool "conn_contract", out of which "1" are available and "0" are unavailable.>
####<2013-12-14 上午10時28分49秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001124> <Created Connection Pool named conn_contract.>
####<2013-12-14 上午10時28分49秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001175> <Creating TX Data Source named contractDatasourceCT for Pool conn_contract.>
####<2013-12-14 上午10時28分49秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001121> <Created TX Data Source named contractDatasourceCT for Pool conn_contract.>
####<2013-12-14 上午10時28分49秒 CST> <Info> <JMS> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-040321> <JMSServer "WSStoreForwardInternalJMSServermyserver" is resuming.>
但是weblogic卡著啟動不了,
<2013-12-16 上午10時14分16秒 CST> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "myserver" fordomain "mydomain">
####<2013-12-16 上午10時14分21秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001177> <Creating Connection Pool named conn_contract, URL = jdbc:sybase:Tds:10.17.192.123:5000/contract2011?charset=cp936, Properties = {user=sa, url=jdbc:sybase:Tds:10.17.192.123:5000/contract2011?charset=cp936, networkProtocol=Tds, userName=sa, portNumber=5000, databaseName=contract2011?charset=cp936, serverName=10.17.192.123}.>
####<2013-12-16 上午10時14分21秒 CST> <Info> <Common> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-000625> <The application has disabled periodic testing of free resources in pool "conn_contract".>
####<2013-12-16 上午10時14分21秒 CST> <Info> <JDBC> <hsz-7880> <myserver> <Main Thread> <<WLS Kernel>> <> <BEA-001068> <Connection for pool "conn_contract" created.>
啟動異常日志與正常啟動日志相比,好像缺少了初始化連接池的過程,但是刪除連接池后weblogic則可以正常啟動,
所以基本上判斷sybase數據庫最大連接數不夠,需要修改最大連接數;
登陸:
isql -Usa -Scmproce
1、查看最大連接數
sp_configure 'number of user connections'
結果如下:
Parameter Name Default Memory Used Config Value Run Value Unit Type
-------------- ------- ----------- ------------ --------- ----
number of user connections 25 2372 25 25 number dynamic
Sybase的數據庫默認最大連接數為25,當連接數不夠用的情況下,需要修改數據庫配置。
2、修改為200
sp_configure 'number of user connections',200
go
----經驗證,修改最大連接數后weglogic啟動正常.
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。