From f41032a89134b20491c563143268be44ac1cb2a9 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 19 Dec 2017 10:14:51 +0200 Subject: [PATCH] Update notes for 2017-12-19 --- content/post/2017-12.md | 14 ++++++++++++++ public/2017-12/index.html | 24 +++++++++++++++++++++--- public/sitemap.xml | 10 +++++----- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/content/post/2017-12.md b/content/post/2017-12.md index ae352d79e..a7a1ec897 100644 --- a/content/post/2017-12.md +++ b/content/post/2017-12.md @@ -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 + +![Idle PostgreSQL connections on CGSpace](/cgspace-notes/2017/12/postgres-connections-month-cgspace-2.png) + +- 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 diff --git a/public/2017-12/index.html b/public/2017-12/index.html index a2a3740e2..2a3f24117 100644 --- a/public/2017-12/index.html +++ b/public/2017-12/index.html @@ -23,7 +23,7 @@ The list of connections to XMLUI and REST API for today: - + @@ -56,9 +56,9 @@ The list of connections to XMLUI and REST API for today: "@type": "BlogPosting", "headline": "December, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-12/", - "wordCount": "2244", + "wordCount": "2374", "datePublished": "2017-12-01T13:53:54+03:00", - "dateModified": "2017-12-18T17:03:58+02:00", + "dateModified": "2017-12-18T22:07:13+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -561,6 +561,24 @@ $ 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

    + + + +

    Idle PostgreSQL connections on CGSpace

    + + + diff --git a/public/sitemap.xml b/public/sitemap.xml index 4876b4fde..0c33e2b33 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-12/ - 2017-12-18T17:03:58+02:00 + 2017-12-18T22:07:13+02:00 @@ -139,7 +139,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-12-18T17:03:58+02:00 + 2017-12-18T22:07:13+02:00 0 @@ -150,7 +150,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-12-18T17:03:58+02:00 + 2017-12-18T22:07:13+02:00 0 @@ -162,13 +162,13 @@ https://alanorth.github.io/cgspace-notes/post/ - 2017-12-18T17:03:58+02:00 + 2017-12-18T22:07:13+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-12-18T17:03:58+02:00 + 2017-12-18T22:07:13+02:00 0