我正在使用 SqlServer Database 2005 并正在使用连接池,我在 Tomcat Context.xml 文件中编写了这样的代码
<Resource
name="jdbc/tm4u"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://192.168.1.230:1433;databaseName=AMS2;User=XX;Password=XXXXX;selectMethod=cursor"
username="sa"
password="t4u@2011"
maxActive="200"
maxIdle="10"
maxWait="10000"
/>
The above configuration file am open 200 connection .. but in database it will opened 1500+ connections ... please help me how to handle.