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

detachNewThreadSelector crashes the app randomly

I am developing an iphone app in which I am extracting RSS feeds and then parsing them.My code is as bellow: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; NSLog(@"in view did appear"); if ([stories count] == 0)…
Yogi
  • 65
  • 1
  • 7
4
votes
1 answer

Connection request timed out after database is back online

We have a problem in our C# project using PetaPoco micro-orm. Our Oracle database is on another machine and if we bring that machine down for maintenance or fault we got this error in C# PetaPoco: Exception="Connection request timed out at…
Suciu Eus
  • 169
  • 1
  • 8
4
votes
1 answer

What physics engine would be good for a Silverlight pool engine?

I have looked into the Farseer engine, but I barely scratched the surface. Would it or another engine be good for a reasonably accurate pool game engine?
BenMaddox
  • 1,780
  • 3
  • 18
  • 30
4
votes
2 answers

How to restrict pool size of MDB on Glassfish v3

my Message Driven Bean executes highly intensive operations so I would like to restrict it's pool size or my server would have been overloaded. I have tried this ( code ) but it doesn't work, it's pool is still 32 ( empirically tested, time to time…
Gaim
  • 6,734
  • 4
  • 38
  • 58
4
votes
2 answers

Multithreading Python FS Crawler

I've written a python function that scours a filesystem using a provided directory pattern, with optional 'actions' to take provided at each level. I then tried multi-threading it since some of the volumes are on network shares and I want to…
Cyclone
  • 2,103
  • 1
  • 14
  • 13
4
votes
0 answers

How to avoid "MySQL server has gone away" during interactive R sessions

The overwhelming majority of my R analysis involves connecting to a MySQL database on a remote machine via DBI and RMySQL (using tidyverse-style connections). I'll typically build various and asundry lazy tables and eventually collect some of them.…
crazybilly
  • 2,992
  • 1
  • 16
  • 42
4
votes
1 answer

Python Multiprocessing w/ Map: Running Entire Script, Not Just Sub-function

I'm trying to use Python's multiprocessing map function. I have placed the map call inside a sub-function, as I need to loop through a larger data-set to divide it up and call map on the smaller chunks. My problem is that the time.sleep(5) line is…
4
votes
1 answer

Where to end the mysql pool connection on nodejs?

I'm using MySQL on Nodejs. I'm using mysql pool to create the connection: Var mysqk = require ('mysql'); Var pool = mysql.createPool ({my configs}); My question is: Where in the app will I use pool.end() as reported in the documentation? For…
wBB
  • 821
  • 1
  • 18
  • 39
4
votes
3 answers

Java String Instantiation

Why is this code returning "false" instead of "true": package com.company; public class Main { public static void main(String[] args) { String fullName = "Name Lastname"; String name = "Name "; String lastName =…
user7451361
4
votes
1 answer

PSQLException: The server does not support SSL

Environment Windows HikariCP version: 2.6.0 JDK version : 1.8.0_65 Database : PostgreSQL Driver version : 42.0.0 org.postgresql It works for some time, like 2 hours, then the exception raises. My configuration: ds = new HikariDataSource(); …
Alexandre
  • 363
  • 7
  • 20
4
votes
1 answer

Haskell Servant passing custom data to auth handler

I'm using custom monad (with reader) to easily pass data like DB pool to my handlers (before using custom monad I used to pass connection as fn argument). This is how I've defined my custom monad : newtype Controller a = Controller {…
Reygoch
  • 1,204
  • 1
  • 11
  • 24
4
votes
2 answers

is it possible for NGINX to have a pool of N open connections to backend?

trying to use NGINX as reverse proxy, and would like to have constant number of open connections to backend (upstream) open at all times. Is this possible with nginx (maybe haproxy..?) ?? running on ubuntu if it makes any difference
Arieh Leviav
  • 322
  • 3
  • 9
4
votes
4 answers

Multiprocessing with pool in python: About several instances with same name at the same time

I'm kind of new to multiprocessing. However, assume that we have a program as below. The program seems to work fine. Now to the question. In my opinion we will have 4 instances of SomeKindOfClass with the same name (a) at the same time. How is that…
CrazyChris
  • 63
  • 7
4
votes
1 answer

Stored-by-Value Pool that support polymorphism, how to use smart pointer?

Introduction I have a data structure : pool of values. (not pool of pointers) When I called create(), it will return Handle. Everything is good so far. template class Pool{ std::vector v; //store by value …
javaLover
  • 6,347
  • 2
  • 22
  • 67
4
votes
1 answer

python multiprocessing pool.map hangs

I cannot make even the simplest of examples of parallel processing using the multiprocessing package run in python 2.7 (using spyder as a UI on windows) and I need help figuring out the issue. I have run conda update so all of the packages should…
Kraig
  • 85
  • 1
  • 6