Issue Details (XML | Word | Printable)

Key: JDO-53
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Michael Watzek
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Use JPOX connection pooling to improve performance

Created: 20/May/05 05:36 AM   Updated: 23/Apr/06 02:30 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Resolution Date: 23/Apr/06 02:30 AM


 Description  « Hide
The performance of the tck20 test suite should be improved considerably by implementing JPOX connection pooling.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michelle Caisse added a comment - 25/May/05 01:08 AM
From Andy Jefferson:
"One thing that you may find beneficial when running the TCK is to enable use of connection pooling via the JPOX plugin for Apache DBCP, or C3P0. Speed-ups of 30-40% are normal. See here for how to enable it
http://www.jpox.org/docs/1_1/rdbms_connection_pooling.html"

Michael Watzek added a comment - 10/Jun/05 02:01 AM
The actions behind the link are:

1) Downloaded JPOX plugin for commons-dbcp (jpox-dbcp-1.1.0-beta-3.jar)
2) Downloaded commons-dbcp (commons-dbcp-1.2.1.jar)
3) Downloaded commons-pool (commons-pool-1.2.jar)
4) Downloaded commons-collections (commons-collections-3.1.jar)
5) Added a JPOX property to PMF properties (org.jpox.connectionPoolingType=DBCP)
6) Added all jars to the classpath and started the TCK

However, connection pooling does not speed up TCK execution: Each test case creates a new PMF instance and the connection pool is bound to a PMF instance. The performance would improve, if many test cases performed multiple transaction. Actually, most of them performs a single transaction.

Michael Watzek added a comment - 14/Jun/05 09:31 PM
I propose to use "c3p0-0.9.0-pre6.jar" for c3p0. This is the current pre release 6. A TCK run with this version produces the same amount opf errors as without connection pooling:

Datastore identity:
Tests run: 350, Failures: 13, Errors: 88 (Time: 625 seconds)

Application identity:
Tests run: 350, Failures: 12, Errors: 84 (Time: 768 seconds)

The download URL is:

http://prdownloads.sourceforge.net/c3p0/c3p0-0.9.0-pre6.bin.zip?use_mirror=switch

Michael Watzek added a comment - 16/Jun/05 12:54 AM
Fixed as suggested.

Michael Bouschen added a comment - 23/Apr/06 02:18 AM
Reopened to set the Fix Version/s field to JDO 2 beta.