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
7
votes
2 answers

How to create Generics Pooling System for components/scripts?

My awareness of Generics is that they can help me streamline my pooling, but can't figure out how. My pooling system is minimalistic, but messy. And now getting unwieldy and messy, and MESSY. It doesn't scale nicely... My FXDistribrutor.cs class is…
Confused
  • 6,048
  • 6
  • 34
  • 75
7
votes
2 answers

String Literal address across translation units

I'd like to ask if is it portable to rely on string literal address across translation units? I.e: A given file foo.c has a reference to a string literal "I'm a literal!", is it correct and portable to rely that in other given file, bar.c in…
Felipe Lavratti
  • 2,887
  • 16
  • 34
7
votes
4 answers

Examples of when it is convenient to use Executors.newSingleThreadExecutor()

Could please somebody tell me a real life example where it's convenient to use this factory method rather than others? newSingleThreadExecutor public static ExecutorService newSingleThreadExecutor() Creates an Executor that uses a single worker…
Rollerball
  • 12,618
  • 23
  • 92
  • 161
6
votes
0 answers

JdbcTemplate pooling and performance

I am working on a project where we are optimizing a legacy codebase that used boilerplate jdbc code and in our new project we use springs jdbcTemplate. I've found the query times in the legacy code are twice as fast and am curious if its…
Jason
  • 1,371
  • 4
  • 21
  • 44
6
votes
1 answer

org.testng.TestNGException while trying to access PoolingHttpClientConnectionManager

So I have recently started facing TestNGException while trying to run our existing test suite using the IDE. By recently I mean updating the intelliJ and dependencies to try working on latest versions. The code and the stack-trace for failure is as…
Naman
  • 27,789
  • 26
  • 218
  • 353
6
votes
5 answers

When to go for object pooling?

When to go for object pooling using C#? Any good ex... What are the pro's and con's of maintaining a pool of frequently used objects and grab one from the pool instead of creating a new one?
ACP
  • 34,682
  • 100
  • 231
  • 371
6
votes
1 answer

CloudBees and App Cells, Instances and Pools

I am trying to understand the difference between: An app-cell An app instance; and An app pool For instance, how do I know when it is appropriate to add more app-cells for my app? Or to add more instances? Or to configure a certain subset of them…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
6
votes
3 answers

How to pool objects in Spring?

I'm following this tutorial regarding how to pool objects in Spring. I've followed the instruction written on the tutorial but when I run my application, it always generates a new instance of the object. I'm expecting that since I'm pooling the…
Arci
  • 6,647
  • 20
  • 70
  • 98
6
votes
1 answer

org.apache.tomcat.jdbc.pool.DataSource is no longer in the tomcat 7 dbcp jar?

I am trying to create a spring-managed standalone pool for tomcat-dbcp using the version 7.0.30 of tomcat-dbcp.jar However it seems the org.apache.tomcat.jdbc.DataSource class that is referred to in the Tomcat's documentation…
buraksay
  • 153
  • 1
  • 2
  • 5
5
votes
2 answers

How to pool the JMS connection in a standalone Java application?

We are working on an IBM WebSphere MQ application, and we use JMS API to operate the message. But we have a problem that the connection takes too much time, and we want to pool the JMS connection, for it's a standalone application, we have no…
phyerbarte
  • 199
  • 3
  • 12
5
votes
2 answers

Database connection settings retrieved from a JNDI connection pool

I have hosted a data source on the Websphere server and I wanted make use of that data source through my application clients. After retrieving the database connection from the JNDI data source, I am changing the commit setting of the connection to…
Dungeon Hunter
  • 19,827
  • 13
  • 59
  • 82
5
votes
3 answers

Spring connection pooling issue

I'm not experienced in Java and Spring. I try to write a program that uses JdbcTemplate for Data access. I use DBCP pooling, here it is:
xyzt
  • 1,201
  • 4
  • 18
  • 44
5
votes
3 answers

Is there a standard way of implementing a proprietary connection pool in .net?

Is there a standard connection pooling model (or API) similar to that used by the data providers in .net that I could use to implement my own connection pool? I ask because I have a requirement to implement my own connection pool to a proprietary…
VinceJS
  • 1,254
  • 3
  • 18
  • 38
4
votes
0 answers

Pooling Web Workers

Does anyone know of good patterns/libraries for pooling Web Workers? I want to be able to do something like the following: Set a maximum number of threads. The first time I ask for a Worker it creates a new one. The next time it will return the…
Andy Hume
  • 40,474
  • 10
  • 47
  • 58
4
votes
3 answers

PHP pooling functionality (not just database connections)

Is it possible to pool data or functionality in PHP? The amateur-ish PHP code that I write wakes up to handle a response, loads functions, opens database connections, create objects, initialises them, and then - dies after 0.01 secs when the…
boisvert
  • 3,679
  • 2
  • 27
  • 53
1
2
3
15 16