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

Need help managing MySql connections

I'm having trouble finding a clear explanation of connection pooling. I'm building an app using the .NET connector I downloaded from mysql.com. The app only needs one db connection but will be running simultaneously on about 6 machines on my…
David Jenings
  • 593
  • 1
  • 4
  • 8
0
votes
1 answer

pooling with Windsor

I've tried out the pooling lifestyle with Windsor. Lets say I want multiple CustomerTasks to work with a pool of ILogger's. when i try resolving more times than maxPoolSize, new loggers keeps getting created. what am I missing and what exactly is…
AlonEl
  • 81
  • 7
0
votes
1 answer

hikaricp get number of busy connection

Like we can get the number of busy connection in c3p0 by using method like dataSource.getNumBusyConnections(), the same way how can we do that in case of hikaricp? Can anyone provide all the related methods between c3p0 and hikaricp? Also what is…
dks551
  • 1,113
  • 1
  • 15
  • 39
0
votes
1 answer

Hashcode of String new () objects showing same values

In Java I did this : String s1=new String("USA"); String s2 = new String("Canada"); String s3=new String("Canada"); String s4 = new String("Canada"); String s5=new String("Canada"); System.out.println(s1.hashCode()); …
Navchetan
  • 153
  • 1
  • 2
  • 11
0
votes
1 answer

Java resource pool

I have an app that stores data in XML. When user asks for data, XML is parsed into entities, which are then showed to him via something-like-servlet. My problem is, that after every refresh, something-like-servlet has to process data again and…
toothbrush
  • 43
  • 1
  • 5
0
votes
0 answers

Java - libGDX - ParticleEffect - Should I use pooling?

I am making a libGDX (Android) game for which I'll have 90 ParticleEffects playing simultaneously. These may however be of about 25 different types (e.g.: water, fire, ...), which would potentially mean that 2250 effects are pooled in 25 different…
0
votes
1 answer

Insert Java connection pooling layer?

I have a vendor supplied Java console application for loading historical data into their webapp and an Oracle 11g backend all runing on redhat. Performance testing is projecting upwards of a month or more to load our volume of historical data. I…
TMatthews
  • 1
  • 1
0
votes
1 answer

what are the consequences of turning off connection pooling?

I have a main application using an ODBC driver and connection pooling. A separate program also accesses the connection pools via the same driver but an issue has been detected with the connection pool and driver by this 2nd program. If we turn off…
0
votes
2 answers

.NET Pooling IAsyncResult Objects

Reading through the SendAsync, BeginAsync method illustrations of Sockets, I realized that it was suggested to pool SocketAsyncEventArgs instances saying that it is a better than BeginXX, EndXX async approach since each call creates an IAsyncResult…
Ekin Koc
  • 2,996
  • 20
  • 24
0
votes
1 answer

UCP PoolDataSourceImpl with ConnectionInitializationCallback

I am attempting to configure a UCP PoolDataSourceImpl with a ConnectionInitializationCallback. Here's my configuration: private static DataSource createDataSource(Properties properties) throws SQLException, UniversalConnectionPoolException { …
Andy Mc
  • 388
  • 1
  • 3
  • 11
0
votes
1 answer

Using SQLAlchemy connection pool with different deployment environment

I have been reading the SQLAlchemy documentation on connection pooling, while the topic is by itself simple; I think it has lots to do with how you deploy your application (I'm talking about a WSGI application here). Lately I'm starting to use…
manu
  • 3,544
  • 5
  • 28
  • 50
0
votes
0 answers

How to access a jdbc datasource defined in tomcat context.xml?

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
0
votes
1 answer

Pooling of custom WCF channel

We have developed a custom WCF channel which communicates via IBM Websphere MQ. We have created a channel factory: public class MqChannelFactory : ChannelFactoryBase Which returns instances of our channel: public class…
MJ Richardson
  • 1,441
  • 12
  • 30
0
votes
1 answer

Process Pooling in im4java

Guys am using imagemagick library for image processing in my project(java). When multiple requests hit the server, it responds very slowly. Now, multiple convert commands ( executes as an individual process ) are executed simultaneously and to avoid…
gursahib.singh.sahni
  • 1,559
  • 3
  • 26
  • 51
0
votes
1 answer

how to handle this situation of deadlock in dot net

suppose, I am having the application for movie seat reservation. scenario is, 3 different request comes at system at exact same time. neither the difference in milliseconds also... How to handle the request? how to define the critical section and…
Red Swan
  • 15,157
  • 43
  • 156
  • 238
1 2 3
15
16