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
3
votes
5 answers

Connection pooling with Java and MySQL in Tomcat web application

I recently wrote and deployed a Java web application to a server and I'm finding an unusual problem which didn't appear during development or testing. When a user logs in after so long and goes to display data from the database, the page indicates…
Martin OShea
  • 33
  • 2
  • 5
3
votes
1 answer

When using proxool, do I need to explicitly close every getConnection()?

I'm writing new DB connection code, and thought I'd try proxool as the connection pool implementer. Normally, a programmer would ensure that every DriverManager.getConnection(...) is followed by a connection.close(). But when using Proxool, is the…
Kunal
  • 111
  • 6
3
votes
1 answer

Is there a way to reuse a NHibernate SessionFactory for multiple databases?

Like the title says, is there a way to "reuse" a SessionFactory for multiple databases? Since instantiating the SessionFactory takes time, I wonder if it would be possible to pool these instances and reuse them, changing only the connection/database…
vgru
  • 49,838
  • 16
  • 120
  • 201
3
votes
1 answer

Communication between Python and WCF

I have multiples servers (200-300) in Python 2.4 calling a WCF service using REST. I would like to be able to notify those servers of some changes that occured on the WCF service instead of asking all servers in Python to do some pooling to detect…
2
votes
2 answers

Maintain Outbound TCP Connection Pool in ColdFusion

I'm looking to make heavy consumption of a RESTful API from a ColdFusion application. I'm not a CF expert but I'm anticipating the repeated cfhttp calls will become a bottleneck as I believe that each results in a connection being established,…
hapimatt
  • 41
  • 2
2
votes
3 answers

C# How to "verify" that new connections are actually getting reused from connection pool

I have a simple c# code in which I am trying to open and close connections multiple times. How can I ensure that my new connections are coming from connection pool and that it is not hitting the database? using System; using System.Data; using…
Polygotte
  • 83
  • 4
2
votes
0 answers

Android Connection pooling

For implementing http connection pooling, I had gone through this link. After reading this I came to conclusion that making a single Http client object and connection manager with different request and responses will take care of connection…
Hari
  • 21
  • 5
2
votes
1 answer

Python MySQL connection pooling

I've looked through stackoverflow and can see some oldish posts on this and wondered what the current thinking is about pooling connections in Python for MySQL. We have a set of python processes that are threading with each thread creating a…
user987263
  • 21
  • 2
2
votes
1 answer

WCF Proxy Pooling - Is it worth it?

Is it really worth pooling WCF proxy clients, or is it better to instanciate a new proxy on every call to a given method? By the way, does anyone have a pooling pattern for this kind of proxies which he/she is willing to share?
User
  • 3,244
  • 8
  • 27
  • 48
2
votes
0 answers

Database Connections Timing Out (Connection Pooling On Tomcat)

My dB connections are constantly timing out. I looked through some of the solutions people have offered to this, and have implemented them, but nothing has worked out till now. Any new thoughts, will be very helpful. Problem For some requests to the…
Rohitesh
  • 967
  • 2
  • 14
  • 29
2
votes
1 answer

Dropwizard default connection pooling does not expire connections properly

I am using Dropwizard with the Hibernate bundle. After letting it run for some hours/days, any attempt to access the database will result in a com.mysql.cj.exceptions.CJCommunicationsException: The last packet successfully received from the server…
2
votes
2 answers

What could cause that performance improvement? Time in GC, Pooling

Our multithreaded application does a lengthy computational loop. On average it takes about 29 sec for it to finish one full cycle. During that time, the .NET performance counter % time in GC measures 8.5 %. Its all made of Gen 2 collections. In…
user492238
  • 4,094
  • 1
  • 20
  • 26
2
votes
0 answers

what is the kind of max pooling in this nlp questionhierarchy description

I'm trying to implement this description and that what I did I generated uni_gram & bi_gram & tri_gram of shape(?,15,512) "using padding " & then for each word I concatenate the three feature vector (?,3,512) and then I apply to them…
Soad Saleh
  • 83
  • 7
2
votes
1 answer

SQL Task in SSIS foreach loop -- Max pool size was reached error

I am using a foreach loop in SSIS to iterate over the contents of a folder, executing a SQL Task for each file. When I do this, it works fine the first ~300 times through the loop, then it hangs and says: Error: 0xC002F210 at ______, Execute SQL…
nosirrahcd
  • 1,467
  • 3
  • 18
  • 36
2
votes
3 answers

is there any way where I can find out when was the last time a String/Integer was accessed in Java?

I have sessionID stored in String and I want to keep a timer for it if its idle for 5 minutes, I want to close the session. session is created in different jar, that is third party app. Which cannot be edited. It is just returning session ID to my…
deepti mullur
  • 569
  • 1
  • 4
  • 14