Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Problem Description: LDAP server suspended new connections due to Spring LDAP Template pool created so many connections in a short period of time. After a while, LDAP server resumed serving requests ...
vikas thakur's user avatar
0 votes
1 answer
802 views

I'm trying to implement a connection pool using https://commons.apache.org/proper/commons-pool/ with JSch and use it in a Spring rest controller. I coded based on this stackoverflow answer: https://...
MugenTwo's user avatar
  • 344
1 vote
0 answers
1k views

I am using the apache commons pool2 version 2.8.1. While borrowing object from pool, threads are getting stuck. I initialised the pool size as 1. And had 3 threads created. First thread enters ...
Sart's user avatar
  • 9
0 votes
1 answer
441 views

I'm working on a custom Boomi connector that uses Jedis in order to send data to a redis server. One thing I am trying to work on, is removing the parameter String parameters and still determining if ...
Jacob's user avatar
  • 399
1 vote
1 answer
2k views

I have this pool of objects (using org.apache.commons.pool2), from which I borrow (or create) one. The maximum idle size I have set is 3 ( with a max size of 5). This was set with the understanding ...
user1583803's user avatar
1 vote
1 answer
2k views

I'm configuring a pool of objects using apache commons pool2. It seems the objects in the pool are only created when an attempt is made to borrow an object. I'd like the objects to be created up front,...
ronanl's user avatar
  • 11
0 votes
0 answers
1k views

I am facing an issue similar to the one jedis-1929. We are using JedisPool with maxTotal=400 and have ensured that after using jedis from pool.getResource() we are returning the connection back to the ...
Pankaj Yadav's user avatar
1 vote
1 answer
3k views

I have created a pool of objects that I need to reuse. Every time I try to return the object I get an error of: "Returned object not currently part of this pool" I have override the both the equals ...
The Myron's user avatar
0 votes
1 answer
769 views

In Apache Commons Pool 1, the class GenericObjectPool had the possibility to define three actions to react to an exhausted pool: Fail Block Grow Now, in version 2 I do not see these three options and ...
JeanValjean's user avatar
  • 17.8k
1 vote
1 answer
1k views

Is there any connection pool library for Websphere MQ in Java? I tried to implement connection pool for WebSphere MQ using Apache Commons Pool, but it didn't work.
Raju Parashar's user avatar
0 votes
1 answer
72 views

I'm trying to instrument my app to monitor a connection pool. We use apache commons pool 1.6 for connection pooling, with all the applications deployed on the same AS (we use Jboss EAP 6). Trace ...
mauromax's user avatar
0 votes
0 answers
423 views

I am developing a REST service based on jax-rs. I need connection pooling for my application so I will be using commons pool2. I plan on initializing my pool in a class the implements ...
SteamboatUsa's user avatar
1 vote
1 answer
2k views

I have the following code in Scala that uses the Apache pool2 library. The object to pool is OlapConnection (an olap4j class, similar to an SQL connection). Problem is that I can't make the pool ...
ps0604's user avatar
  • 1,217
0 votes
2 answers
1k views

I would like to use Apache Pool 2 library, but looking for following functionality: The objects are not dummy new empty instances, but pre-loaded objects from external data source. You can imagine ...
Ladislav Zitka's user avatar
0 votes
1 answer
2k views

An application I'm working on, uses the Apache Commons library to implement the KeyedObjectPools. We have an Object factory, wherein we have implemented the methods specified in the ...
mon95's user avatar
  • 71
0 votes
0 answers
2k views

I currently have a spring bean which has a method annotated with @Scheduled to support automatic refresh of its state from external source. I have also annotated the bean with scope as prototype. Now, ...
user320587's user avatar
  • 1,367
1 vote
1 answer
663 views

There are several getXXXCount method defined in the BaseGenericObjectPool class BaseGenericObjectPool.getBorrowedCount BaseGenericObjectPool.getCreatedCount BaseGenericObjectPool.getDestroyedCount ...
Tom's user avatar
  • 6,382
2 votes
1 answer
2k views

I am using Apache Commons Pool 2, I have set the configuration testWhileIdle to true, which means that the Pool framework will check whether the idle objects they are valid. I would ask whether this ...
Tom's user avatar
  • 6,382
0 votes
1 answer
510 views

I am developing IBM MQ Connection pool using Apache commons pool (2.4.2 ). IBM MQ JAR version 8. As part of Pool concept , I need to validate the connection before return to program. Help me on ...
Gnana's user avatar
  • 2,230
1 vote
1 answer
2k views

We are using redis for caching purpose in our application. Our goal is to create new Redis connections as the pool size exhaust or crosses a certain threshold so that we can keep the number of idle ...
ankur garg's user avatar
0 votes
1 answer
1k views

Currently I am using Apache Commons Pool 1.6 to manage a GenericKeyedObjectPool pool of connections. I have seen threads both throwing exceptions and hanging indefinitely both of which lead to the ...
D. Twomey's user avatar
1 vote
1 answer
972 views

The deprecated CommonPoolTargetSource had a set of behaviors you could define using setWhenExhaustedActionName(). The CommonsPool2TargetSource and the CommonsPool2 BaseGenericObjectPool it wraps ...
Steve Wicklund's user avatar
1 vote
1 answer
762 views

I was referring to this SO question, and I did couple of additions in this benchmark test. The main problem is my apis are getting slow as load increases on server. I am using jedis pool configuration....
theGamblerRises's user avatar
2 votes
1 answer
802 views

The create method of PooledObjectFactory has no parameter https://commons.apache.org/proper/commons-pool/api-2.4.2/org/apache/commons/pool2/BasePooledObjectFactory.html#create-- If my Foo class ...
liuhua's user avatar
  • 73
5 votes
1 answer
2k views

I have a tomcat - spring4.2 application that runs multiple threads. Each thread dequeues from only one queue, however there are more than one threads assigned to a queue. Things start fine, but ...
Kedar Parikh's user avatar
  • 1,271
3 votes
1 answer
642 views

I am using 1.6 version of apache commons-pool library. As per the javadoc, whenExhaustedAction specifies the behavior of the borrowObject() method when the pool is exhausted: It can be either ...
Albie Morken's user avatar
0 votes
2 answers
419 views

I am using SSH Maverich Library for making SFTP Call and i encapsulated maverick objects and pooled connections objects using apache commons pool. I implemented commons pool Factory method to create ...
devv's user avatar
  • 311
5 votes
1 answer
1k views

I am using Apache Commons Pool to create a pool of Nashorn engines. On application start I call preparePool() to warm up the minIdle number of instances to eval() all scripts into the engine so that ...
sthzg's user avatar
  • 5,564
2 votes
2 answers
4k views

In Spring, I have a jedisConnFactory and a jedisPoolConfig bean like this <bean id="jedisConnFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" p:host-name=...
Rocherlee's user avatar
  • 2,831
2 votes
1 answer
1k views

I am writing a messaging facade that takes in arbitrary POJOs and sends them across the wire in JSON format, with the following workflow: User invokes MessagingFacade.sendMessage(Object) Borrow a ...
jwa's user avatar
  • 3,307
1 vote
1 answer
1k views

I'm using Spring MVC 3.2.4 and Apache Commons Pooling 2.3 for managing connections to a SOAP service. One of the things I am using is the "idle object eviction" thread feature in the ...
skel625's user avatar
  • 896
0 votes
1 answer
1k views

Awhile ago I created a program that created socket connections and funneled their input to a single telnet connection to our legacy server. The goal of the project is to create a front end for the ...
Andrew's user avatar
  • 175
0 votes
1 answer
2k views

Currently i'm working on a standalone Java apps that connects to a Websphere MQ to send and receive messages. The flow is in asynchronous mode, which we implemented using MessageListener class to ...
ipohfly's user avatar
  • 2,029
1 vote
1 answer
5k views

I'm trying to setup a connection factory for my redis client (lettuce client version: 2.3.3) using Spring Data Redis (version.: 1.1.x) but I'm having some troubles while wiring everything together. ...
danielgpm's user avatar
  • 1,682
5 votes
1 answer
14k views

I want to create a pool of Object P with Apache Commons Pool 2. I create a P object with variable and method. I create a PPool like this: public class PPool extends GenericObjectPool<P>{ /...
DevOps85's user avatar
  • 6,543
0 votes
1 answer
6k views

I am getting this error on prod in approximately every 7-8 days. So to debug this issue I downloaded the thread dump file. This file has following thread state 100 times: "http-8080-198" daemon prio=...
vikas27's user avatar
  • 573
0 votes
1 answer
240 views

Apache Commons seems to be the decent Object Pool implementation out there. Or any other framework that could support the cause How Can I save its state of the pool during shutdown; may be serialize ...
Njax3SmmM2x2a0Zf7Hpd's user avatar
3 votes
1 answer
10k views

I'm writing a daemon for getting servers stats for some game. In compilation I've get a message: cannot access org.apache.commons.pool2.impl.GenericObjectPoolConfig class file for org.apache.commons....
IlyaVorozhbit's user avatar
2 votes
0 answers
1k views

I am using ActiveMQ PooledConnectionFactory PooledConnectionFactory connectionFactory = new PooledConnectionFactory(Constants.AAMQ_MESSAGE_BROKER_URI); Connection tempConnection = connectionFactory....
Rajneesh's user avatar
  • 2,281
0 votes
2 answers
5k views

I am trying to use apache pool2 to pool some resources. I have it working fine in a unit test, but when I try using it in spring 3, I get an error. Everything else is working with the Controller and ...
Andy N's user avatar
  • 412
1 vote
1 answer
673 views

I just studying redis. In my text-book, they use GenericObjectPool.Config class which supported in apache commons pool jar version 1.6. However, for now that class has disappeared. So I want to know ...
Juneyoung Oh's user avatar
  • 7,734
0 votes
1 answer
362 views

I am trying to add objects to object pool. I am using apache commons pool for this. My code as is as follows: public ObjectPool<OAuthConsumer> consumerPool; public ObjectPool<OAuthConsumer&...
Nischal Hp's user avatar
6 votes
1 answer
4k views

I put Jsch into commons-pool (with spring pool support) with initial success http://docs.spring.io/spring/docs/3.2.4.RELEASE/spring-framework-reference/htmlsingle/#aop-ts-pool However: Should we ...
simonso's user avatar
  • 625
0 votes
2 answers
2k views

Here is my demo: PoolableObjectFactoryImpl.java public class PoolableObjectFactoryImpl implements PoolableObjectFactory<Result> { private static Logger logger = Logger.getLogger("...
Allerson's user avatar
  • 109
1 vote
1 answer
548 views

I have written a simple Java code, which attempts to store files in an hsqldb database. All it does is reads the files from a certain directory and puts them in the DB. It is single threaded, but I am ...
mark's user avatar
  • 63.6k
1 vote
1 answer
2k views

I am trying to use apache commons pool to create a pool of 'objects'. Since I already have an object factory which takes a string type argument and create a right type of object I want to use this ...
Mopparthy Ravindranath's user avatar
1 vote
2 answers
2k views

I have a GenericKeyedObjectPool in my application. I can close it with the close method but how should I wait for the clients to return (and the pool destroys) every borrowed object to the pool? I ...
palacsint's user avatar
  • 29k
1 vote
1 answer
492 views

If I'm using more than one GenericKeyedObjectPool in an application with enabled asynchronous idle object eviction how many "idle object eviction" thread will run in the background? Do multiple ...
palacsint's user avatar
  • 29k
5 votes
1 answer
3k views

I'm using Apache Commons Pool library to maintaing a pool of couchbase connections (can be seen as any kind of connection, doesn't really matter). The problem I'm facing is that the only way I've ...
Javierfdr's user avatar
  • 1,152
1 vote
2 answers
6k views

I've added commons-pooling-1.6.jar to my classpath and trying to instantiate a StackObjectPool and am failing at every turn: // Deprecated. ObjectPool<T> oPool = new StackObjectPool<T>(); ...
IAmYourFaja's user avatar
  • 57.2k