connection-pooling

DBCP Connection properties

久未见 提交于 2019-12-08 13:02:10
问题 We are having hard time figuring out the properties defined, minIdle , maxIdle etc. we are seeing the following error with the following setting InitialSize=5 maxActive=50 maxIdle=40 maxWait=2000 Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object at org.springframework.jdbc.datasource.DataSourceUtils.getConnection

Same old story: Tomcat DBCP + MySQL, MySQLNonTransientConnectionException: No operations allowed after connection closed

爱⌒轻易说出口 提交于 2019-12-08 12:17:21
问题 I examined related questions here on this topic, and also googled for some time. Still seems I don't understand something crytical in Tomcat's DBCP configuration or mechanics. I got Tomcat 6, DBCP resource configured in server.xml : <Resource name="jdbc/myDB" auth="Container" description="Database connection" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://myhost:3306/mydb?autoReconnectForPools=true&useUnicode=true" username="user" password="password"

Eclipselink Pooling equivalent to C3PO

空扰寡人 提交于 2019-12-08 08:25:00
问题 I am trying to prevent this logging The last packet successfully received from the server was 10,255 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago. I already set the the connection url with auto reconnect in the persistence.xml What I want is that there will be a connection pool, check the connection every minute or hour so the connection is still alive. The Hibernate has this feature with c3po. like the ff. <property name="hibernate.c3p0.timeout"

Pass-through queries and linked table queries using different connections

ε祈祈猫儿з 提交于 2019-12-08 06:22:16
问题 Follow-on to an earlier question: Force SET IDENTITY_INSERT to take effect faster from MS Access I'm in the process of upsizing from an MS Access backend to a SQL Server backend. Many of the tables have autonumber primary keys. I'm trying to populate them as follows (pseudocode): ExecutePassThru "SET IDENTITY_INSERT dbo.Accounts ON" db.Execute "INSERT INTO sql_Accounts SELECT * FROM mdb_Accounts" ExecutePassThru "SET IDENTITY_INSERT dbo.Accounts OFF" In the above code, sql_Accounts is a

c3p0 pool is not shrinking

徘徊边缘 提交于 2019-12-08 05:30:34
问题 I am using c3p0 connection pool with Spring (with plain jdbc, no hibernate). Here is my configuration for pool <bean id="myDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="${jdbc.driver}"/> <property name="jdbcUrl" value="${jdbc.url}"/> <property name="user" value="${jdbc.username}"/> <property name="password" value="${jdbc.password}"/> <property name="acquireIncrement" value="3"/> <property name="minPoolSize" value="3"/

Setting up an oracle connection pool using spring in Mule ee 3.2.2

不打扰是莪最后的温柔 提交于 2019-12-08 04:41:19
问题 Mule is really neato but the rigid shared xsd stuff with spring never seems to play nice. The horrible documentation offered up by Mulesoft is continuing to be...Horrible. I am trying to get a connection pool setup since each query that runs for my service simple takes too long to instantiate. I am forced to fire up 9 queries per service call and the lag from not having a pool affects performance in a bad way. For the dataSource I have tried many different oracle v6 classes but I always seem

Spark connection pooling - Is this the right approach

吃可爱长大的小学妹 提交于 2019-12-08 04:05:02
问题 I have a Spark job in Structured Streaming that consumes data from Kafka and saves it to InfluxDB. I have implemented the connection pooling mechanism as follows: object InfluxConnectionPool { val queue = new LinkedBlockingQueue[InfluxDB]() def initialize(database: String): Unit = { while (!isConnectionPoolFull) { queue.put(createNewConnection(database)) } } private def isConnectionPoolFull: Boolean = { val MAX_POOL_SIZE = 1000 if (queue.size < MAX_POOL_SIZE) false else true } def

Establish pooled connection to MySQL in android

江枫思渺然 提交于 2019-12-08 01:48:40
问题 I need to access a MySQL db from my android app. Now all the work is done through DriverManager.getConnection(url); and so on. But I have to access the db from multiple threads, so I have to use connection pooling. Question 1. Is com.mysql.jdbc.jdbc2.optional.MysqlDataSource ds = new com.mysql.jdbc.jdbc2.optional.MysqlDataSource(); the right way of creating the data source? Question 2. If I write the previous line of code, my app compiles and installs on the device (not emulator) fine, but I

MySQL ODBC 3.51 - How to disable connection pooling from the ODBC GUI?

强颜欢笑 提交于 2019-12-07 23:03:38
问题 How do I disable connection pooling for MySQl ODBC Driver 3.51 on Windows7/Server2008 via the ODBC GUI? I do my own connection pooling at the app level, making connections as and when needed, and storing them for a fixed period until terminating them if not used. I use the ODBC's DSN string, so I need to be able to set the "Pooling=False" option from the ODBC configuration screen. 回答1: Found it... The 32Bit ODBC GUI is started from C:\Windows\SysWow64\odbcad32.exe. In this GUI, there is a tab

Every time new Connection is returned from Ldap connection pool

寵の児 提交于 2019-12-07 18:29:47
问题 I have implemented LDAP connection pooling in my project and noticed a strange behavior that every time new connection request comes, LDAP connection pool I configured is returning new connection instead of re-using existing connection returned to pool. LDAP JNDI logs : 00:07:10,824 ERROR [stderr] (IPAdminGlobalDataReloader) Create and use com.sun.jndi.ldap.LdapClient@46728c0f[eun2p3-be.stp-qa.st.com:636] 00:07:12,222 ERROR [stderr] (IPAdminGlobalDataReloader) Release com.sun.jndi.ldap