Questions tagged [connection-pool]

108 questions
1
vote
1 answer

Add Configurations to a Singleton Object in Scala

I am trying to set up a connection pool to Redis in a Singleton Scala Object so that I can read/write to Redis while mapping partitions of a DF. I want to be able to configure the host, along with other connection pool variables when I run my main…
sgallagher
  • 137
  • 10
1
vote
0 answers

Shared native connection in Redis

What is the shared native connection in Redis? How to understand it? Thank you.
Yan
  • 11
  • 3
1
vote
1 answer

Mysql Connection vs Connection Pool

I have 4 separate tables in the same database. Would it be better to use mysql2.createConnection() or mysql2.createPool to bulk insert into each table? I'd like to run the inserts asynchronously. The code will be executing the inserts from an AWS…
navig8tr
  • 1,724
  • 8
  • 31
  • 69
1
vote
1 answer

Mysql connector - How to use connection pool with multiple databases?

I have more than 30 databases and I want to use connection pool in my python code. conn = mysql.connector.connect( host=MYSQL_HOST, user=MYSQL_USERNAME, passwd=MYSQL_PASSWORD, database=database, …
vishal
  • 104
  • 13
1
vote
0 answers

Neo4j Java Driver - Connection Pool

I'm using Neo4j Java Driver and I was trying to create a connection pool. This is the driver that I added: org.neo4j.driver neo4j-java-driver 1.1.1
1
vote
0 answers

Implement pool queue selenium grid

In automation test single Cucumber TestNG runner is assigning threads to grid properly. However when we have multiple jobs accessing same hub url, it's causing time out. If we implement a pool queue, Do I need to queue testNg runner class or…
1
vote
0 answers

How to implement pool for selenium hub requests

We have recently created a job with cucumber selenium grid on aws, which will scale pods on fly up to 100. Cucumber has inbuilt parallel feature for testNg in latest version. If we have 100 nodes and 150 tests(In one job) then 100 tests in that job…
1
vote
2 answers

How does the postgresql (set role user) command use in SSM projects?

Now the project is using springmvc+ spring + mybatis + druid + postgresql The users in the project correspond to the users in the database, so each time you run SQL, you switch the users with the (set role user) command and then perform the crud…
blue_CAT
  • 13
  • 4
1
vote
1 answer

org.apache.tomcat.jdbc.pool.ConnectionPool - Unable to create initial connections of pool

I'm working on a Spring Boot based project which incorporates a Tomcat Connection Pool (instead of the default Hikari). I've done everything according to this article and it works as expected, although when I change from MySQL to PostgreSQL, it…
高科技黑手
  • 1,252
  • 2
  • 12
  • 20
1
vote
0 answers

Connection not established after database backup

Deployed web application in weblogic 12c server and it has data source configure to make use of connection pool. Database is Oracle 12, Usecase: when application is alive up and running, for a min database backup script has been run(stop db,…
1
vote
2 answers

Tomcat ignores removeAbandonedTimeout and closes connections in pool

I am working on tomcat 7.0 with a JDBC connection to DB2 on an as400 using the commons dbcp. As soon as I put a load on the server, it immediately opens and closes connections to the database ignoring the 30 minute removeAbandonedTimeout setting I…
Andrew Lavespere
  • 13
  • 1
  • 1
  • 4
1
vote
0 answers

Using JDBC connection pool on Android device with H2 embedded database

I am developing an embedded java application (jar) which consumed by Android application. (the Android device (API19) it's just the view, I imported the JAR with Gradle to my Android Studio's project). I'm using H2 database (tested on Android) and…
sharonooo
  • 684
  • 3
  • 8
  • 25
1
vote
0 answers

Error java:38: error: 'try' without 'catch', 'finally' or resource declarations

I keep getting an error stating I need a catch clause to accompany the try (inside public Connection getConnection()). I dont understand why the compiler isn't noticing the catch directly under the try. Does anyone know why it won't compile? I…
Alexis M
  • 21
  • 3
1
vote
0 answers

Default Row Prefetch property is not working on connection object

I want to specify the number of rows to prefetch for connection pool object using connection properties to override the default row prefetch size (10). I have set the connection properties as mentioned below, but it is not reflecting while…
1
vote
1 answer

Static class to get connections from connection pool

I want to understand the concepts of connection pool.For example I have the following xml file in META-INF with my DB settings
Almas Abdrazak
  • 3,209
  • 5
  • 36
  • 80