mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2017-12-19
This commit is contained in:
@ -396,3 +396,17 @@ $ schedtool -D -e ionice -c2 -n7 nice -n19 dspace index-discovery
|
||||
```
|
||||
|
||||
- The PostgreSQL issues are getting out of control, I need to figure out how to enable connection pools in Tomcat!
|
||||
|
||||
## 2017-12-19
|
||||
|
||||
- Briefly had PostgreSQL connection issues on CGSpace for the millionth time
|
||||
- I'm fucking sick of this!
|
||||
- The connection graph on CGSpace shows shit tons of connections idle
|
||||
|
||||

|
||||
|
||||
- And I only now just realized that DSpace's `db.maxidle` parameter is not seconds, but number of idle connections to allow.
|
||||
- So theoretically, because each webapp has its own pool, this could be 20 per app—so no wonder we have 50 idle connections!
|
||||
- I notice that this number will be set to 10 by default in DSpace 6.1 and 7.0: https://jira.duraspace.org/browse/DS-3564
|
||||
- So I'm going to reduce ours from 20 to 10 and start trying to figure out how the hell to supply a database pool using Tomcat JNDI
|
||||
- I re-deployed the `5_x-prod` branch on CGSpace, applied all system updates, and restarted the server
|
||||
|
Reference in New Issue
Block a user