File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Threads and Dread
Joined: Nov 26, 2003
Apr 06, 2006 10:40:00
I've been running up a new website, using
, the DAO
and Apaches DBCP (database connection pool).
Somewhere in here I have an action to do a search against the database. This takes about 2 seconds to return.
This opens up say 40 connections in the pool.
If I lean on F5 submitting request after request, and open the same page in a different browser, I don't get a results until my connection pool settles down to 0 again.
Is this because
- the request is the last one, and gets serviced last.
- the DB pool is doing something funny.
- I've totally missed something and everyone has to queue when accessing the database.
I'm worried. All my code if pretty clean, but I don't know how to
this to see if I can get any concurrency. I'm using
Other pages continue to respond beatufiully.
A carrot is as close as a rabbit gets to a diamond.
I agree. Here's the link:
subject: Threads and Dread
Connection pools in WAS 5
How to detect wrong login earlier
How to open a connection pool to a database?
Right or not? Servlets share the same object.
Object structure for databases in servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015