Comments (2)
To address this issue we needed to make some code changes to the pool (as described below) and change the datasource pool configuration maxInactiveTimeSecs to 180 (3 minutes).
The problems with the pool code were:
- It didn't trim idle connections BEFORE it grabbed one to use for the 'heartbeat test'. So the pool could grab a 'broken/timed out' connection for the 'heartbeat test'.
- It didn't trim idle connections frequently enough. A bug using the wrong 'wait time between trims'.
- The 'heartbeat test' didn't have a Timeout on it.
In addition to fixing these issue I also did a little re-factoring and added some metrics collection (so that we can monitor connection pool workload relatively easily).
from ebean.
Fixed by 87a9482
from ebean.
Related Issues (20)
- No delay on SIGTERM before shutting down future count ThreadPoolExecutor HOT 2
- Unable to use kapt to generate querybean in Maven HOT 1
- JtraTransactionManager keeps reference to already closed scope (and Transaction/connection ThreadLocal) when JtaTxnListener#afterCompletion is called by a different thread HOT 3
- 12.8.3 java.util.ConcurrentModificationException: null HOT 7
- Java 22 support HOT 6
- PreSoftDelete entity methods are not invoked on soft delete HOT 2
- connect remote mysql server, heartBeat exception :java.sql.SQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown. HOT 3
- ebean-redis put empty value for natural keys
- Entity property called desc used with query order by desc generates bad sql HOT 2
- [ebean-migration] Connection is closed error running migration with MySql and Hikari HOT 2
- Can not use @JoinColumns HOT 6
- duplicate result when using in-statement with bean cache HOT 1
- Slow SQL do not log native SQL
- DBName with hyphens creates invalid code HOT 2
- Specified twice when use mapping with Entity has @EmbeddedId HOT 1
- Add alias support for filterMany
- Different filterMany behavior when no matches found HOT 3
- Fields are null when I use rawSql for fetch an @Entity with fetchType = lazy
- filterMany has no effect on OneToOne
- Miss data when I save a @Entity which has Lazy fetch type HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebean.