补充监控信息 & 重构

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@261 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-08 05:38:55 +00:00
parent aaea3928fa
commit a475a1ec3a
8 changed files with 334 additions and 79 deletions
@@ -45,9 +45,9 @@ public class Case1 extends TestCase {
private int maxPoolSize = 50;
private int maxActive = 50;
private String validationQuery = "SELECT 1";
private int threadCount = 10;
private int threadCount = 40;
private int loopCount = 4;
final int LOOP_COUNT = 1000 * 100;
final int LOOP_COUNT = 1000 * 10;
protected void setUp() throws Exception {
jdbcUrl = "jdbc:fake:dragoon_v25masterdb";
@@ -78,7 +78,7 @@ public class Case1 extends TestCase {
System.out.println();
}
public void test_1() throws Exception {
public void ftest_1() throws Exception {
final BasicDataSource dataSource = new BasicDataSource();
dataSource.setInitialSize(initialSize);