Questions tagged [pool]

A pool describes a cache of resources that an application can draw from to save instantiation time.

Pools typically refer to database connections but the term can be applied to graphics handles, files and other run-time processes. When the use of such a resource is complete but the application is still running, it will typically return the resource to the pool rather than release it.

1504 questions
0
votes
0 answers

check the Number of connection open for database

I am trying to implement the Connection Pool in my project. I need to count the number of connection that i need at a particular time so that i can set the maximum limit of connection for connection pool. Can any one guide me how can i check, how…
Himanshu Jain
  • 518
  • 4
  • 20
0
votes
2 answers

Hibernate pool seems to release connections

I experience a strange behavior using hibernate. I have a java web application using hibernate and spring, working with MySQL database. The symptoms: Checking the connected sessions on my sql by useing: show processlist; I can see the amount of…
Noam Shaish
  • 1,613
  • 2
  • 16
  • 37
0
votes
0 answers

Python Pool.map deepcopy wearing off

I'm trying to parallelize a task that involves a function which takes a custom object as a parameter. During the body of the function, said object gets manipulated, so I need a deepcopy of the original object at the start of each trial. When I use…
Philip Massey
  • 1,401
  • 3
  • 14
  • 24
0
votes
0 answers

talloc-like pools for C++

Is there any memory allocation library that provides talloc-like pools and is specifically designed to play well with C++'s features? In particular: I can predict in advance how big a pool needs to be. There is no risk that I might accidentally…
isekaijin
  • 19,076
  • 18
  • 85
  • 153
0
votes
2 answers

Alternatives to an Object Pool?

I'm not quite sure that I need an object pool, yet it seems the most viable solution, but has some un-wanted cons associated with it. I am making a game, where entities are stored within an object pool. These entities are not allocated directly with…
miguel.martin
  • 1,626
  • 1
  • 12
  • 27
0
votes
1 answer

Bug in python/multiprocessing.pool?

(this is using Python 2.7) I have found similar links but not about the exact same issue than what I am having. This program hangs on the map_async, and never finishes, I can see the Python process getting created but it never completes: import…
BlueTrin
  • 9,610
  • 12
  • 49
  • 78
0
votes
1 answer

How to set the object pool manager properties in WebSphere?

I created an object pool manager under Resources > Object pool managers in WebSphere Application Server 7.0. How do I set the maxSize and minSize of the pool? Can you direct me to a tutorial on how to set the properties of the pool? Also do you know…
Arci
  • 6,647
  • 20
  • 70
  • 98
0
votes
0 answers

Spring3 pooling vs WebSphere's pooling?

I have a J2EE web application which uses Spring3 framework and will eventually be deployed on WebSphere Application Server 8.5. We wanted to implement some pooling for our web application. However, both Spring3 and WebSphere Application Server has…
Arci
  • 6,647
  • 20
  • 70
  • 98
0
votes
1 answer

How to pool a Java object in WebSphere Application Server 7.0?

I have simple class object which I want to pool in WebSphere Application Server 7.0. My Java class looks like this: SimpleBean { String str1; String str2; SimpleBean() {str1="This is str1";} public void setStr1(String str1) …
Arci
  • 6,647
  • 20
  • 70
  • 98
0
votes
1 answer

comp/env/pool not found in context "java:"?

I have a web application trying to access a JNDI declared in WebSphere Application Server. The JNDI is declared under Object pool managers. However, I'm receiving an error when I access the pool. The error says that comp/env/pool is not found in…
Arci
  • 6,647
  • 20
  • 70
  • 98
0
votes
2 answers

String object life in StringPool

All we know that JVM stores String variables in a separate StringPool. Every time when we create a String (eg. String s1 = "anystring") it stores as a constant & when we create new String variable as same value it uses same reference except creating…
Suresh Sharma
  • 1,826
  • 22
  • 41
0
votes
2 answers

Advice on data structure for pooling objects

I'm implementing a simple pooling system in my box2d based game to spawn/despawn/pre-pool all objects. The objects in question are all circles that are created at a set radius. e.g. When I pre-pool I create 10 x 2m, 5 x 5m, 5 x 10m circles. Right…
hOOks7
  • 71
  • 1
  • 8
0
votes
0 answers

Java Connection pool exhausted error

I know normally if the error happened, i mean org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, which means the conenction is overloaded. but in this case, I pretty sure there's no connection to my local mysql…
Lihong Qiu
  • 51
  • 1
  • 1
  • 6
0
votes
2 answers

Third party connection pool software?

I am totally familiar with connection pool libraries, like c3p0, etc... I'm cool with connection pools that are managed by a web container, like Tomcat and WebSphere. But what about the scenario where you have a stand alone, batch mode Java…
0
votes
2 answers

Must a call to malloc be matched by a call to free in a dynamic memory pool?

I have some code here that implements a dynamic memory pool. The pool starts off at size 0 and grows with each successive allocation. It is used to try and minimise the overhead of tons of allocations and de-allocations. The call to malloc is NOT…
Carl
  • 43,122
  • 10
  • 80
  • 104