Questions tagged [pooling]

a container holds ready objects for clients, to reduce initialization time of expensive buffers or resources.

Commonly refers to network or database connection pools, or byte buffer pools.

239 questions
1
vote
1 answer

could not calculate the dimensions after pooling and subsampling in the famous Convolutional neural nets example

The above image is from a pdf by Yann LeCun, titled "Hierarchical Models Of Perception and Reasoning" I am not able to understand the how the layer 2 is 14X14 feature maps? How can 75X75 matrix with 10X10 pooling and 5X5 subsampling gives 14X14…
1
vote
2 answers

Object pooling: howto

I need to implement a pool of Sessions that are returned by an external system, so that I can reuse them quickly as soon as one is needed (creating a Session takes a while). I've worked with datasource to create a pool of database connections (DBCP…
EugeneP
  • 11,783
  • 32
  • 96
  • 142
1
vote
1 answer

Tomcat jdbc pool doesn't work

I am having a slight problem with using JDBC tomcat pool. I have properly defined the resource in context.xml, as well as referring to it in web.xml. Now in my Database access method, I would like to somehow get a data source for when a user get…
Darbininkai Broliai
  • 159
  • 1
  • 1
  • 13
1
vote
0 answers

Connection pooling for JAX-WS client on websphere

As per IBM websphere documentation , once we declare maxconnection and conenction timeout in JVM custome properties. Connction pool will throw an exception if there are no more connection left in the conenction pool and connection timeout also…
1
vote
1 answer

Hibernate causing too many time_wait connections

I am using Hibernate 3 and I am facing a problem related to connections being closed. I am using c3p0-0.9.1.2.jar and I checked onto the connections to database server opened by Hibernate, I found that there are established connections which are 5…
Ashish Jain
  • 4,667
  • 6
  • 30
  • 35
1
vote
0 answers

Mysql connections in TIME_WAIT state

I am facing an issue in server wherein couple of connections are being timed out. Below are the errors in the err file:- 130401 8:07:06 [Warning] Aborted connection 1111111to db: 'ABC' user: 'u1' host: '1.1.1.1' (Got timeout reading communication…
Sridhar V
  • 61
  • 1
  • 5
1
vote
2 answers

How to shutdown a GenericKeyedObjectPool safely?

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 need something like…
palacsint
  • 28,416
  • 10
  • 82
  • 109
1
vote
1 answer

How to make resource pooling in Java?

I have to maintain an app that create often resources and use them a very short time. So, most of the (precious user) time is spent in creating resources rather than actually using them. I'd like to put those resources into a pool for grabbing them…
Stephan
  • 41,764
  • 65
  • 238
  • 329
1
vote
3 answers

Pool of Objects - Synchronize - Delphi

I am implementing a pool of objects in Delphi. I need to synchronize the threads to get the objects from the pool. Thread Code: uClientQueryPool.CLIENT_POOL_GUARD.Acquire(); QueryClient :=…
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
1
vote
0 answers

Resources for implementing object pooling in prototypical not classical JavaScript

quick question (with slightly laborious build up).... Both Douglas Crockford and Stoyan Stefanov in their JavaScript books strongly encourage staying clear of Classical (class based) paradigms when implementing JavaScript projects, and exploiting…
James Cat
  • 432
  • 2
  • 12
1
vote
2 answers

Commons Pooling: How to instantiate a concrete pool?

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 oPool = new StackObjectPool(); // Error: Cannot instantiate the type…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
vote
1 answer

Is this unsynchronized object pool implementation good/safe?

Can this object pool cause visibility problems with multiple threads? I'm specifically wondering about this kind of execution sequence: Thread A - obtainObject() Thread A - modifies object (lets say visibleState = 42) Thread A -…
Durandal
  • 19,919
  • 4
  • 36
  • 70
0
votes
2 answers

I want to use Connection Pooling but my java application is not a servlet

Part of my project is to enhance the thread-safety part of my application. I want to be able to store and retrieve data from a mysql database through JDBC Connector/J and I know that I need to use connection pooling for this but my application is…
David
  • 1,469
  • 5
  • 33
  • 51
0
votes
2 answers

What is good way of implementing an object pool in Camel

I have a few camel routes that call an external web service, i need to manage a session pool for this web service, keeping a few sessions open and reusing idle ones each time a camel route needs one. Which is "safer" : - managing/persisting the…
redben
  • 5,578
  • 5
  • 47
  • 63
0
votes
1 answer

Multi-job pooled printer control

We've got 4 printers with identical trays/paper configured in a pool. Multiple jobs can be submitted and it will kind of round-robin send the jobs to the printers per whichever one is idle. That works good, but.. We're working on a new application…
wdingus
  • 56
  • 5