メモ org.apache.commons.dbcp.BasicDataSourceの設定
2007/09/05
java
データベース
org.apache.commons.dbcp.BasicDataSource
下記のふたつの設定結構重要かも。
maxActive
The maximum number of active connections that can be allocated from this pool at the same time, or non-positive for no limit.
maxWait
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
maxWiatはデフォルトで無限なので、要求をだしたいてる部分が固まってみえるようになる可能性大。
: