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

How can I get a RejectedExecutionException

Anybody able to provide me with an example of getting a RejectedExecutionException Possibly a real life example. Thanks in advance.
Rollerball
  • 12,618
  • 23
  • 92
  • 161
4
votes
1 answer

How to change redis DB that the redis client is from redis pool

How can I changedb(redis command select), when I used the pool of redis. I want write host and read host from different DB. for example: just now I only have one redis server,so the readWriteHosts = readOnlyHosts pool =…
zt9788
  • 948
  • 4
  • 16
  • 31
4
votes
2 answers

Python multiprocessing pool for parallel processing

I want to execute some processes in parallel and wait until they finish. So I wrote this code: pool = mp.Pool(5) for a in table: pool.apply(func, args = (some_args)) pool.close() pool.join() Will I get 5 processes executing func in parallel…
4
votes
1 answer

Azure Continuous Integration

I have an MVC 4 application on .NET 4.5.I have my application deployed on Azure cloud. Up until yesterday I would make changed to my application, then check in to TFS, then my application would automatically get deployed on azure. And everything…
CPV
  • 53
  • 3
4
votes
2 answers

Unclosed connection - Connection Pool debugging SQL Server

We have a suspect application leaving a connection open. Just wondering on the debugging tools for this, as to whether anyone has any good tools for isolating this, commercial or otherwise. I've Googled but only seem to bring up articles that…
Squiggs.
  • 4,299
  • 6
  • 49
  • 89
4
votes
3 answers

Gevent pool with nested web requests

I try to organize pool with maximum 10 concurrent downloads. The function should download base url, then parser all urls on this page and download each of them, but OVERALL number of concurrent downloads should not exceed 10. from lxml import…
DominiCane
  • 1,263
  • 3
  • 16
  • 29
4
votes
2 answers

Java 7 - String.intern() behaviour

I've read this answer about how to check if a string is interned in Java, but I don't understand the following results: String x = args[0]; // args[0] = "abc"; String a = "a"; String y = a + "bc"; System.out.println(y.intern() == y); // true But if…
A. Rodas
  • 20,171
  • 8
  • 62
  • 72
4
votes
1 answer

Should I use Pools for particles if i forced to re-init every particle every time i create them

I am creating a particle system in XNA4 and I've bumped into problem. My first particle system was a simple list of particles, whose instances are created when needed. But then I read about using pools. My second system consists of a pool, filled…
edwing
  • 81
  • 7
4
votes
1 answer

Jetty server hangs with large object pool without any requests being made

I am running a web application using jetty server with maven. The application contains a large pool of static objects in Lists and Maps contributing to the 2.8GB of physical memory usage. After several hours, the server hangs with maximum CPU usage.…
Emir Pasic
  • 95
  • 1
  • 7
4
votes
3 answers

Gevent with Database connection pool for Stream Server

I am using Python Gevent's stream servers for communicating with another machine (remote) which sends concurrent TCP/IP requests (on an avg 60 req/sec). Nature of this communication is mostly IO bound (short text and then audio streams). I intend to…
user1794913
  • 51
  • 1
  • 5
4
votes
0 answers

What is relation between IIS application pool and Database(Ex: SQL Server)?

Hi, What is the relation between IIS application pool and Database(Ex: SQL Server) for a ASP.NET application? Does any changes in IIS application pool configuration effect database connections? or vice versa? How does SQL Server maintain the…
a praveen
  • 318
  • 4
  • 9
4
votes
1 answer

Python's multiprocessing map_async generates error on Windows

The code below works perfectly on Unix but generates a multiprocessing.TimeoutError on Windows 7 (both OS use python 2.7). Any idea why? Thanks. from multiprocessing import Pool def increment(x): return x + 1 def decrement(x): return x -…
David M.
  • 4,518
  • 2
  • 20
  • 25
4
votes
1 answer

python multiprocessing, manager initiates process spawn loop

I have a simple python multiprocessing script that sets up a pool of workers that attempt to append work-output to a Manager list. The script has 3 call stacks: - main calls f1 that spawns several worker processes that call another function g1. When…
4
votes
1 answer

Custom memory allocator for OpenCV

Is it possible to set a custom allocator for OpenCV 2.3.1? I have a memory pool created and I want OpenCV to use that pool for what it needs. Is that possible? If it is, how can it be done? Updated: I made some developments since last answer, but I…
André
  • 75
  • 1
  • 6
3
votes
2 answers

Thread pool with many blocked tasks

I'm using a thread pool that should be able to execute hundreds of concurrent tasks. However the tasks usually do very little computation and spend most of their time waiting on some server response. So if the thread pool size contains hundreds of…