atellwu / furious-objectpool Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/furious-objectpool
Automatically exported from code.google.com/p/furious-objectpool
Hi,
I'm using furiosObject Pool 1.1. and set the poolsize with this settings :
poolSettings = new PoolSettings<ConnectionPoolSocket>(
...
});
// Add some settings
poolSettings.min(0).max(6);
poolSettings.validateWhenReturn(false);
because I have a Socket Connection inside my pool that rarely used and I want
to close if is not used.
When test my code with :
ExecutorService threadExecutor = Executors.newFixedThreadPool(4);
for (int i = 0; i < 30; i++) {
threadExecutor.submit(this);
}
threadExecutor.shutdown();
try {
Thread.sleep(60000);
} catch (InterruptedException e) {
}
I see myPool grow correctly to 4 connections but in the sleep time only 3
connections are closed and 1 is alive.
Any hint to do that ?
Thank you very much and congratulations for the excellent work
Original issue reported on code.google.com by [email protected]
on 28 Dec 2012 at 10:32
With concurrent accesses you have to synchronize the getObj() method.
If not totalSize will always be the min size defined for the pool and not grows
correctly.
public synchronized T getObj() throws PoolException { ... }
Check on concurrent accessed methods please. ;)
Best regards,
Daniele Bonetto
Original issue reported on code.google.com by [email protected]
on 18 Apr 2013 at 8:09
PoolControler does not set itself to be a daemon thread, which hinders the JVM
to exit when the main thread exits unless you explicitly have called
Poolcontroler.shutdown(). Since I cannot see any reason for this behavior
(there does not seem to be any external resources which need cleanup) I would
like to ask you to call setDaemon(true) in the PoolControler constructor (right
after setName(...)).
Original issue reported on code.google.com by [email protected]
on 31 Mar 2014 at 12:30
What steps will reproduce the problem?
1. Depending on platform, JVM, and concurrent load, concurrent calls to the
getPool() method of the PoolFactory class may result in a crash.
2.
3.
What is the expected output? What do you see instead?
It is expected that many threads may concurrently call getPool() on the same
PoolFactory, and the same correctly initialized pool must be returned. It is
possible however for the program to crash.
What version of the product are you using? On what operating system?
version 1.1.2 on Windows 7
Please provide any additional information below.
Check the internet for "Double Checked Locking in Java" to see exactly why the
PoolFactory class is broken in a subtle way, and also how to easily fix it for
J2SE 1.5 and later.
Original issue reported on code.google.com by [email protected]
on 4 Jan 2015 at 11:01
Hello,
can you generate javadoc please ?
Cheers.
Original issue reported on code.google.com by [email protected]
on 22 May 2012 at 10:25
Hi,
there's a problem getting n simultaneous object from pool with a maximum of
actives lesser than n using the 1.1.3 snapshot release.
I think the problem is caused by a null return of poolableObject.make() call in
create function.
I tested it with this modifications and it works:
protected void create() throws PoolException {
T t = poolableObject.make();
if (t != null) {
totalSize.incrementAndGet();
queue.add(t);
}
}
Can u verify and fix it please?
Regards,
Daniele
Original issue reported on code.google.com by [email protected]
on 17 Feb 2014 at 2:19
What steps will reproduce the problem?
1. Create a pool with 1 object & set maxWait time to 0 (infinite)
2. Take the object from pool
3. Try to take another object
What is the expected output? What do you see instead?
The second query returns immediately without blocking. Expected to block for
infinite amount of time.
What version of the product are you using? On what operating system?
1.1.3-SNAPSHOT
Attached a patch to implement this feature.
Original issue reported on code.google.com by be.lietaus
on 9 Sep 2013 at 7:41
Attachments:
We are using objectpool 1.1 to pool DocumentBuilders.
We are getting some ConcurrentModificationException. Attached is the stack
trace.
Please contact if we can be of some help.
Original issue reported on code.google.com by [email protected]
on 3 Nov 2012 at 8:34
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.