Comments (6)
OK, modifications are done.
I upload a jar on the download area (objectpool-1.1.3-snapshot.jar).
Best regards,
Eddie Raapoto
Original comment by [email protected]
on 18 Apr 2013 at 9:16
- Changed state: Started
from furious-objectpool.
Every time you can access concurrently to queue and totalSize i suppose you've
to use synchronized (like returnObj and destroyObject methods).
If not in multi-thread active/idle count will be incorrect, etc.
Regards,
Daniele Bonetto
Original comment by [email protected]
on 18 Apr 2013 at 9:36
from furious-objectpool.
It strange, because the queue "java.util.concurrent.ConcurrentLinkedQueue" is
already synchronized.
The totalSize variable "java.util.concurrent.atomic.AtomicInteger" is also
thread safe.
Original comment by [email protected]
on 18 Apr 2013 at 11:12
from furious-objectpool.
Hi, i've tried to shutdown pool while idling objects.
When retrieving idles instances counter was the same as before shutdown.
Shutdown don't close idle connections or idles property wasn't synchronized.
Check it please.
Regards,
Daniele
Original comment by [email protected]
on 13 May 2013 at 10:43
from furious-objectpool.
Hi, do u have implemented PoolableObject.destroy(T t) method in your pool
definition ?
Regards, Eddie
Original comment by [email protected]
on 16 May 2013 at 8:47
from furious-objectpool.
Of course and it works.
I think the problem is with counters cause happens that with a max connection
of 5 actives returns a greater number (eg. 7/8).
I suppose there's some problem when getObject fails, but not jet checked on
sources.
I call getObject under try/finally (where i release obj if not null).
Regards,
Daniele
Original comment by [email protected]
on 16 May 2013 at 10:44
from furious-objectpool.
Related Issues (8)
- Javadoc HOT 2
- intermittent ConcurrentModificationException HOT 1
- PoolSize = 0 does not work HOT 2
- No ability to set infinite blocking for pool requests
- problem getting simultaneous objects from pool
- PoolControler thread should be daemon
- PoolFactory.getPool() method implements the "Double Checked Locking" idiom which is broken.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from furious-objectpool.