pool

Multiple SingleThreadExecutors for a given application...a good idea?

Hello friends, This question is about the fallouts of using SingleThreadExecutor (JDK 1.6). Related questions have been asked and answered in this forum before, but I believe the situation I am facing, is a bit different. Various components of the application (let's call the components C1, C2, C3 etc.) generate (outbound) messages, mos...

WCF and tasks with threading

Hi, I am wanting to write some web services using WCF. I would like to have a "thread pool" in my web service. For example, I have nearly 6gb of data I need to manipulate. I would like the client to call an operation on the webservice and have a new task or thread created. The client is able to call a ListRunningTasks(); and have the ...

One big pool or several type specific pools?

Hello, I'm working on a video game witch require high performance so I'm trying to setup a good memory strategy or a specific part of the game, the part that is the game "model", the game representation. I have an object containing a whole game representation, with different managers inside to keep the representation consistent, followi...

IIS Application Pool: change settings programmatic

How can I change IIS application pool seetings / properties programmatic (C#) ? For example, how can I change the setting "Enable 32-Bit Applications" ? Are there property references for IIS 6 and IIS 7 on MSDN or Technet ? Thanks in advance for your help ! ...

spring + ibatis + mysql result in com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

Hi all, this is a very famous error, however after searching and broswing the web I didn't manage to find a stable and proper solution. We are running an application onto this environment: spring + ibatis + mysql all at their latest version. Very randomly we get this error, and then after some time, which can be hours or days, the erro...

WCF Performance: Can I create a pool of my objects like ConnectionPooling does.

I have a service that uses a fairly expensive object to create. I would like to improve the performance from call to call. When I remove the object and run a load test, like how many invocations I can do per second, I have a massive performance difference between to situations. Situation 1. I remove the expensive object: Invocations pe...

multiprocessing Pool hangs when there is a exception in any of the thread

I am new to Python and trying a multiprocessing.pool program to process files, it works fine as long as there are no exceptions. If any of the thread/process gets an exception the whole program waits for the thread snippet of the code: cp = ConfigParser.ConfigParser() cp.read(gdbini) for table in cp.sections(): jobs.append(table) ...

Restrict access to connection pool in Weblogic?

In short, how can I restrict access to connection pool X based on application name or JAR name? A simple use case might help... A business web-app (call it WEB_APP_A) uses pool Y to do basic look-up SQL. Some users of this web-app have access to also update some sensitive data in the database. This code is provided by a JAR file (call i...

Is there a "Socket Connection Pool" of sorts for Java EE apps?

I'm writing a JAX-RS web service. It responds to client invocations by: Retrieving some info from a database Making a call to an external server For 2) the server does not expose a web service interface (i.e. no WSDL interface or REST API). Instead, it uses a custom protocol over TCPIP. I'd like to make client calls from my JAX-RS re...

Reopen error in bdb 4.7 memory

I create a memory pool with flag(DB_CREATE) after ope a Db_Env with flag(DB_CREATE | DB_INIT_MPOOL |DB_SYSTEM_MEM), when I run their program at first time, it's ok and create some db files such _db.001,_db.002,mpool, but after I close the program and run it again,their make a error said the system cannot find the specified file("Mpool: P...

Thread pool stack security issue

In a naive implementation of a thread pool, can a piece of code that is being executed read the data left by some previous code on the stack (if it was running on the same thread instance)? Also, are there any other inherent security issues connected to thread pools? ...

Create ObjectPool in Spring

I have a class class ObjPool { MyObject getObject() {...} void returnObject() {...} int getUsedCount() {...} } How can we use Spring framework so that it would provide only one copy of this factory to all (web) applications and so that each and every application use the same ObjPool? I mean if app A gets an object from this ObjPo...

boost pool_alloc

Why is the boost::fast_pool_allocator built on top of a singleton pool, and not a separate pool per allocator instance? Or to put it another way, why only provide that, and not the option of having a pool per allocator? Would having that be a bad idea? I have a class that internally uses about 10 different boost::unordered_map types. If...

Is there any ideas about create HTML DOM object pool?

In RIA, especially very complicate such as google WAVE. For browser's DOM object recycle system is not smart, I think put all DOM object into an object pool maybe a good idea to avoid create too much useless DOM node. Can anyone give me some advice? ...

[Toplink] How to add c3p0 or DBCP Connection pool?

Hello, Could you please explain to me how to add a standalone c3pO or DBCP connection pool to my toplink-based JPA project? I have a persistence.xml file, and everytime I want to query the database, I'm doing this: EntityManagerFactory emf = this.getEntityManagerFactory(); // Surely using persistence.xml to set up the factory Enti...

securewebpages tag in web.config is not working in IIS 7, with integrated mode app pool.

We have our application running on IIS 7, the application pool configured was classic. I have to changed some url re-writing to change the urls and removed .aspx as an extension from the urls. After deploying I have found that url re writing works with integrated mode only and secure pages stopped working. ie pages which are used to ope...

c# exception handling on background threads using Thread pool

Hi The application I am working on uses thread pool. Here's the basic pseudo code. On the main thread foreach(Object obj in Component.GetObject()) { //Invoke the thread pool providing the call back (method to be called on the background// thread) and pass the object as the parameter. } //Wait for the threads to complete. The "Com...

The best alternative for String flyweight implementation in Java

My application is multithreaded with intensive String processing. We are experiencing excessive memory consumption and profiling has demonstrated that this is due to String data. I think that memory consumption would benefit greatly from using some kind of flyweight pattern implementation or even cache (I know for sure that Strings are o...

mutliprocessing.Pool.add_sync() eating up memory

I want to use multithreading to make my script faster... I'm still new to this. The Python doc assumes you already understand threading and what-not. So... I have code that looks like this from itertools import izip from multiprocessing import Pool p = Pool() for i, j in izip(hugeseta, hugesetb): p.apply_async(number_crunching, ...

How to control Open MP thread pooling?

Hi, I have been using Open MP to speed up an application. However I seem to be having a problem with the creating of additional thread pools. I am compiling on Windows XP using Visual Studio 2005 (Open MP 1.0). The program is similar to a web server, a request from a client comes in and I spawn a thread (using beginthread), this thread...