今天下午开发说合同管理系统开发环境的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启动正常.
--转自