pooling

When to go for object pooling [c#]?

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? ...

ASP.NET connection pool question

Does the same connection string used on two different physical servers hosting different web applications that talk to the same database draw connections from the same connection pool? Or are pooled connections confined to at the application level? I ask because I inherited a 7 year old .NET 1.1 web application which is riddled with in...

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 the meaning of max pool size? the xml configuration i use is (demo code): <component id="...

npgsql Leaking Postgres DB Connections: Way to monitor connections?

Background: I'm moving my application from npgsql v1 to npgsql v2.0.9. After a few minutes of running my application, I get a System.Exception: Timeout while getting a connection from the pool. The web claims that this is due to leaking connections (opening a db connection, but not properly closing them). So I'm trying to diagnose lea...

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 network. Normally, I'd create the connection at startup and just leave it. But I'm seeing lot...

Padding is invalid and cannot be removed

I have hosted an asp.net 2.0 site. Everyday, i am getting an error "Padding is invalid and cannot be removed" 2-3 times. Backend used is sql server 2005. the site is controlled via plesk 9.2 CP. Pooling is enabled with timeout as 120 Minutes, in IIS. Can it be the reason for this? I have not used any encryption except for the stored p...

Oracle OLEDB Connection Pooling and Invalid Connections

We are using ADO to access Oracle 10g release 2, Oledb provider for Oracle 10g. We are facing some issue with the connection pooling. The database reside on the remote machine and connection pooling is occuring as it should. But if the remote machine goes down for some reason, the connection is returned from the pool and query on that co...

Connection Pooling in MINA

our project(banking domain) is divided into 4 layers. One of which is a communication(COM) layer which developed in JAVA uses MINA. Our host applications run on UNIX machine which serve request from users via socket communication. The COM layer has a java program which acts both like a client and server. server to Requests from other JAV...

Managing multiple-processes: What are the common strategies?

While multithreading is faster in some cases, sometimes we just want to spawn multiple worker processes to do work. This has the benefits of not crashing the main app if one of the worker crashes, and that the user doesn't need to worry a lot about inter-locking stuffs. COM+'s Application Pooling seems like a good way to achieve this on...

WCF NetTcpBinding and load balancing

Hi, I have two instances of a WCF service exposing NetTcpBinding endpoints in the application tier, which are consumed by the application tier (heavy traffic website). I need to load balanced these instances under a single VIP. Considering the tcpNet connection pooling, it is recommended to configure the load-balancer as sticky IP, and...

Classic ASP simultaneous calls from different users

I have this classic ASP web application. Each user must login and their most important data are kept in Session variables. Back-end is MS-SQL. When user submit to a particular page, this ones does a lot of stuff including creating files and accessing the database, so each request can take up to 2-3 seconds to perform. Here's my problem...

connection pooling webservices axis2

Hi Guys, here is my code on how I have implemented connection pooling for a webservice stub. package com.arcot.integrations.frontend.tasks.custom.utils; import java.util.Stack; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import com.tpf.mdm.tpf.service.TPFServiceStub; //import com.arcot.ws.w...

Connection Pooling

May I know if the connection pooling is applicable also for the window base application and not just for web base? Please advice. Thanks ...

How Java-Feature multithreading returning result ?

I am still learning about using Future and Callable in Java. Stumble into this question: Say I have class: TaskWorker implements Callable { public String id; public TaskWorker(String id) { this.id = id; } public Documents call() trows Exception { //Assume here, that Search and Doc are my own method to search and re...