connection-pooling

ConnectionPool: pool is empty - increase either maxPoolSize or borrowConnectionTimeout

徘徊边缘 提交于 2020-06-17 09:43:14
问题 I was facing this issue for my springboot application that connects to a DB and MQ, and uses Atomikos Transaction manager. com.atomikos.jms.AtomikosJMSException|Connection pool exhausted - try increasing 'maxPoolSize' and/or 'borrowConnectionTimeout' on the AtomikosConnectionFactoryBean. com.atomikos.datasource.pool.PoolExhaustedException: ConnectionPool: pool is empty - increase either maxPoolSize or borrowConnectionTimeout at com.atomikos.datasource.pool.ConnectionPool

Connection leak (C#/ADO.NET) even though SqlConnection created with using

删除回忆录丶 提交于 2020-06-17 09:09:54
问题 I have a program that loads a large quantity of data (~800K-1M rows per iteration) in a Task running on the threadpool (see offending code sample below); no more than 4 tasks running concurrently. This is the only place in the program that a connection is made to this database. When running the program on my laptop (and other coworkers identical laptops), the program functions perfectly. However, we have access to another workstation via remote desktop that is substantially more powerful than

Error Connecting To PostgreSQL can't pickle psycopg2.extensions.connection objects

こ雲淡風輕ζ 提交于 2020-05-17 09:05:26
问题 I am trying to create an architecture that will have a main parent process & it can create new child processes. The main parent process will always be on loop to check if there is any child process available. I have used ThreadedConnectionPool of psycopg2.pool module in order to have a common database connection for all child processes created. That means the program will be connecting once to the database and execute all the SQL queries for each of the child processes. So there is no need to

Failed to obtain JDBC Connection when using spring with jndi on liberty

岁酱吖の 提交于 2020-04-30 14:05:27
问题 When running load-test when running the application on liberty, and getting the datasource from liberty via JNDI, the test fails after a minute or so with the exception: Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: J2CA0045E: Connection not available while invoking method createOrWaitForConnection for resource jdbc/MY_JNDI_NAME. Timed out waiting for 30,000 millisecond(s)

create a connection pool for many DBs on the same DB server (Spring Boot)

旧时模样 提交于 2020-04-18 05:43:32
问题 I'm looking for a way to create a connection pool for many DBs on the same DB server (PostgreSQL Aurora). This means that I need the ability of changing the target DB of a connection at run time. Currently I'm using HikariCP for connection pooling, in a stack of Spring Boot and JHispter. Background: we need to deploy a multi-tenancy micro-service system with a single DB server (to be specific, a single AWS Aurora PostgreSQL instance) our solution of multi-tenancy is that each tenant has a DB,

oracle10g hibernate problem

心不动则不痛 提交于 2020-02-23 07:36:27
问题 when my app startup, i get error like below, can anyone elaborate what i missed out? the app running fine when using mysql. do i miss out any extra parameter in config.xml file? 2009-08-17 11:32:12,294 [main] INFO [info.jtrac.config.DataSourceFactoryBean] - Not using embedded HSQLDB or JNDI datasource, switching on Apache DBCP data sour ce connection pooling 2009-08-17 11:32:14,826 [main] WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: null 2009-08-17 11:32:14,826

oracle10g hibernate problem

耗尽温柔 提交于 2020-02-23 07:35:29
问题 when my app startup, i get error like below, can anyone elaborate what i missed out? the app running fine when using mysql. do i miss out any extra parameter in config.xml file? 2009-08-17 11:32:12,294 [main] INFO [info.jtrac.config.DataSourceFactoryBean] - Not using embedded HSQLDB or JNDI datasource, switching on Apache DBCP data sour ce connection pooling 2009-08-17 11:32:14,826 [main] WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: null 2009-08-17 11:32:14,826

Proxool java.lang.NoClassDefFoundError

大城市里の小女人 提交于 2020-02-06 08:16:05
问题 I just started using Proxool (JDBC Connection Pool manager). I downloaded the jar which is found at the following link: http://proxool.sourceforge.net/download.html. After that, I just added the jar location into the ClassPath in netbeans 7.0.1, built the project, restarted my server (which is Glassfish) and then tried to configure it as this example shows: https://java2s.com/Open-Source/Java/Database-JDBC-Connection-Pool/proxool/org/logicalcobwebs/proxool/ProxoolDataSourceTest.java.htm I

Single connection with Oracle

只愿长相守 提交于 2020-02-02 10:40:30
问题 In my project, developers use a single instance of Connection instead of a connection pool on an Oracle 12c . Using a pool is a common practice and Oracle itself documents it: http://docs.oracle.com/database/121/JJUCP/get_started.htm#JJUCP8120. But JDBC 4.2 specification says: 13.1.1 Creating Statements Each Connection object can create multiple Statement objects that may be used concurrently by the program. Why using a pool of connections instead of a single connection, if it's possible to

Single connection with Oracle

只愿长相守 提交于 2020-02-02 10:38:56
问题 In my project, developers use a single instance of Connection instead of a connection pool on an Oracle 12c . Using a pool is a common practice and Oracle itself documents it: http://docs.oracle.com/database/121/JJUCP/get_started.htm#JJUCP8120. But JDBC 4.2 specification says: 13.1.1 Creating Statements Each Connection object can create multiple Statement objects that may be used concurrently by the program. Why using a pool of connections instead of a single connection, if it's possible to