On Wed, Jun 4, 2014 at 8:48 AM, Ben Caradoc-Davies <
ben.caradoc-dav...@csiro.au> wrote:

> Connections must be idle for at least 5 minutes (and up to 10) with these
> settings:
>
> minEvictableIdleTimeMillis="300000"
> timeBetweenEvictionRunsMillis="300000"
>
> If requests are very infrequent, then I agree that they will be much
> slower. For more frequent requests there should be no loss of performance.


That depends. The only way for no loss of performance regardless of the
pool policies
is that we get enough parallel requests over time to keep the pool at full
capacity.

If instead we get constant load of one requests (no parallel ones) the pool
will probably go down to just one connection,
 and it will have to grab new ones when the load goes back up.
That is, unless the connections are extracted in a round robin fashion...
but I'd expect the pool to extract objects using
a LRU policy instead (would make sense for performance considerations, the
data structures of the last used connection are more
likely to be in the CPU cache).

Also, to guarantee the connections are freed before the firewall timeout in
the worst case, the numTestsPerEvictionRun should
be as big as the max connection pool size (e..g, if you have 15
connections, and use numTestsPerEvictionRun=3,
it will take 5 runs of the evictor to free the pool, thus bringing the max
idle time before a connection is surely
evicted to 30 minutes)

Cheers
Andrea


-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to