/[Apache-SVN]/commons/sandbox/performance/trunk/config-dbcp.xml
ViewVC logotype

Contents of /commons/sandbox/performance/trunk/config-dbcp.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 640221 - (show annotations)
Sun Mar 23 17:00:49 2008 UTC (20 months ago) by psteitz
File MIME type: text/xml
File size: 3051 byte(s)
Fixed svn props.
1 <!--
2 /*
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 */
20 -->
21
22 <configuration>
23 <database>
24 <driver>com.mysql.jdbc.Driver</driver>
25 <url>jdbc:mysql:///test</url>
26 <username></username>
27 <password></password>
28 <!-- integerIndexed, integerScan, or textScan -->
29 <query-type>integerIndexed</query-type>
30 </database>
31
32 <connection-factory>
33 <!-- DriverManager or Driver -->
34 <type>DriverManager</type>
35 <auto-commit>true</auto-commit>
36 <read-only>false</read-only>
37 <!-- Validation query to use when testOnBorrow or testOnReturn is true -->
38 <validation-query></validation-query>
39 </connection-factory>
40
41 <poolable-connection-factory>
42 <!-- PoolableConnectionFactory or CPDSConnectionFactory (not yet) -->
43 <type>PoolableConnectionFactory</type>
44 <pool-prepared-statements>true</pool-prepared-statements>
45 <max-open-statements>-1</max-open-statements>
46 </poolable-connection-factory>
47
48 <pool>
49 <!-- GenericObjectPool or AbandonedObjectPool -->
50 <type>GenericObjectPool</type>
51 <max-active>15</max-active>
52 <max-idle>15</max-idle>
53 <min-idle>0</min-idle>
54 <max-wait>-1</max-wait>
55 <!-- block, fail, or grow -->
56 <exhausted-action>block</exhausted-action>
57 <test-on-borrow>false</test-on-borrow>
58 <test-on-return>false</test-on-return>
59 <time-between-evictions>-1</time-between-evictions>
60 <tests-per-eviction>3</tests-per-eviction>
61 <idle-timeout>-1</idle-timeout>
62 <test-while-idle>false</test-while-idle>
63 </pool>
64
65 <!-- Ignored unless pool type is AbandonedObjectPool -->
66 <abandoned-config>
67 <log-abandoned>true</log-abandoned>
68 <remove-abandoned>true</remove-abandoned>
69 <abandoned-timeout>50000</abandoned-timeout>
70 </abandoned-config>
71
72 <run>
73 <iterations>100</iterations>
74 <clients>50</clients>
75 <delay-min>250</delay-min>
76 <delay-max>500</delay-max>
77 <delay-sigma>50</delay-sigma>
78 <!-- constant, gaussian, or poisson -->
79 <delay-type>gaussian</delay-type>
80 <!-- none, linear, random -->
81 <ramp-type>random</ramp-type>
82 <ramp-period>5000</ramp-period>
83 <peak-period>2000</peak-period>
84 <trough-period>5000</trough-period>
85 <!-- none, oscillating (others?)-->
86 <cycle-type>oscillating</cycle-type>
87 </run>
88
89 </configuration>

Properties

Name Value
svn:eol-style native

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2