connection-pooling

JDBC and Connection Pools in Glassfish App Server

冷暖自知 提交于 2019-12-24 00:16:19
问题 I want to set up a connection pool and JDBC connection on EAR deployment so I do not have to set it up on each App Server I deploy to manually. What do I need to do? Is there an .xml file I can put this information into? 回答1: If you are using a single GlassFish administration console to manage multiple application servers throughout your environment, those application servers can share a common configuration. If each deployed application server has its own administration console, you can

Using dynamic property in connection pooling service for ExecuteSQL processor

自古美人都是妖i 提交于 2019-12-23 23:20:06
问题 I am using ExecuteSQL to get the table from one or more database but i want to provide URL, Username, and password dynamically to the dbcpconnectionPool service so that i won't need more than one ExecuteSQL processor to retrieve data from different DB. It is found that controller service doesn't accept attribute from incoming flow file. So how to achieve it if it is possible. Someone pointed out that it can be achieved only by using rest api, if that is the case please provide a working

Cassandra database session reuse in AWS Lambda (python)

旧时模样 提交于 2019-12-23 19:13:12
问题 I am trying to reuse a Cassandra cluster session for subsequent AWS Lambda function calls. I've successfully implemented it in Java, but reusing the session in the python gets the lambda invocation timed out (the first call which actually performs the initialization is ok). From the CloudWatch logs I can see I get a Heartbeat failed for connection . It looks to me that the session is not able to communicate while idle, and that it gets in an inconsistent state in which is not able to resume

Exception in thread “PoolCleaner[{a number}]” in tomcat

淺唱寂寞╮ 提交于 2019-12-23 12:29:12
问题 I have implemented a Rest Web Service using apache CXF and I have set up the Tomcat's connection Pool provided in the org.apache.tomcat.jdbc.pool . Everything seems to work fine and my connection pool works but I am keep getting an exception related to the PoolCleaner . The problem is that I cannot find a specific pattern on when this exception happens. It seems random to me and some times it different than the previous times. Sometimes happens when I start tomcat and other times when I

How do I set up DBX connection pooling in code?

你。 提交于 2019-12-23 09:29:14
问题 I've got Delphi XE Professional. It comes with a fair amount of DBX stuff, including the DBXPool unit that contains the connection pooling support, but it doesn't have the full DBX support that comes in XE Enterprise. In particular, a lot of the design-time support isn't there. I don't particularly mind that. I've been able to do all the stuff I've needed without it, up until I needed connection pooling. Now I'm trying to get that to work and I can't quite figure out how to make it work. I

Best practice for reusing SqlConnection

橙三吉。 提交于 2019-12-23 07:15:52
问题 I've come from Java experience and am trying to start with C#. I've read SqlConnection SqlCommand SqlDataReader IDisposable and I can understand that the best practice to connecting to a DB is wrapping SqlConnection , SqlCommand and SqlDataReader in their own using block. But in Java we use to encapsulate the connection into a factory method, create it only once, and reuse it for all queries, even multithreaded ones. Only statements and result sets are created for each query and closed ASAP.

Best practice for reusing SqlConnection

风流意气都作罢 提交于 2019-12-23 07:14:35
问题 I've come from Java experience and am trying to start with C#. I've read SqlConnection SqlCommand SqlDataReader IDisposable and I can understand that the best practice to connecting to a DB is wrapping SqlConnection , SqlCommand and SqlDataReader in their own using block. But in Java we use to encapsulate the connection into a factory method, create it only once, and reuse it for all queries, even multithreaded ones. Only statements and result sets are created for each query and closed ASAP.

Persistent connection or connection pooling in PHP54+ Nginx + PHPFPM + MongoDB

。_饼干妹妹 提交于 2019-12-23 05:07:08
问题 I am using pecl mongo 1.4.x driver(http://pecl.php.net/package/mongo/1.4.1), with the setup mentioned in the title on a moderate traffic services (5K - 10K request per min). And I've found that, in mongoDB the Auth command is taking a large chunck of traffic, and connection request rate is like 30-50 per second. This impacts the performance seriously(lock ratio up, memory management doesn't cops nicely) And if I do netstat in a box(which I have 5-8 boxes in total), I see 2-3K mongo

Spring: Initialize multiple connection pools at startup

你。 提交于 2019-12-23 01:46:05
问题 I want to initialize multiple connection pools at context startup by reading connection parameters from a database table. Basically I want to address following two things Read connection properties from database not the properties file. Their are multiple connection pool(rows in db) details. So my question is How can I iterate over list of rows returned by database in spring-context file and create multiple data-source objects and store them (Lets say in a map) with a unique key? Databse

JDBC communication link failure after some time

落花浮王杯 提交于 2019-12-23 01:35:16
问题 I am using JDBC with proxool connection pool to connect to mysql DB. I am selecting large number of rows from multiple threads and after some time i get an error saying communication link failure, Last packet sent to the server was ...ago. I am closing connection,statement,resultSet in every thread. The fetching time increases gradually and the exception occurs after 5-10 minutes. I doubt it is a memory leak, but cant find any clue. Please let me know the possible reasons. Thanks, Kaka 回答1: