diff --git a/content/post/2017-11.md b/content/post/2017-11.md
index 660119f6e..a1e3bcb98 100644
--- a/content/post/2017-11.md
+++ b/content/post/2017-11.md
@@ -640,7 +640,7 @@ dspace6=# CREATE EXTENSION pgcrypto;
- Also, local settings are no longer in `build.properties`, they are now in `local.cfg`
- I'm not sure if we can use separate profiles like we did before with `mvn -Denv=blah` to use blah.properties
-- It seems we need to use "system properties" to override settings, ie: `-Ddspace.dir=/Users/aorth/dspace7`
+- It seems we need to use "system properties" to override settings, ie: `-Ddspace.dir=/Users/aorth/dspace6`
## 2017-11-15
diff --git a/content/post/2018-01.md b/content/post/2018-01.md
index fe972e732..a4a0c0bc5 100644
--- a/content/post/2018-01.md
+++ b/content/post/2018-01.md
@@ -488,3 +488,31 @@ cache_alignment : 64
111535 2607:fa98:40:9:26b6:fdff:feff:1c96
161797 2607:fa98:40:9:26b6:fdff:feff:1888
```
+
+- Wow, I just figured out how to set the application name of each database pool in the JNDI config of Tomcat's `server.xml`:
+
+```
+
+```
+
+- So theoretically I could name each connection "xmlui" or "dspaceWeb" or something meaningful and it would show up in PostgreSQL's `pg_stat_activity` table!
+- This would be super helpful for figuring out where load was coming from (now I wonder if I could figure out how to graph this)
+- Also, I realized that the `db.jndi` parameter in dspace.cfg needs to match the `name` value in your applicaiton's context—not the `global` one
+- Ah hah! Also, I can name the default DSpace connection pool in dspace.cfg as well, like:
+
+```
+db.url = jdbc:postgresql://localhost:5432/dspacetest?ApplicationName=dspaceDefault
+```
+
+- With that it is super easy to see where PostgreSQL connections are coming from in `pg_stat_activity`
diff --git a/public/2015-11/index.html b/public/2015-11/index.html
index 867e6b8cc..d0c837451 100644
--- a/public/2015-11/index.html
+++ b/public/2015-11/index.html
@@ -52,7 +52,7 @@ $ psql -c 'SELECT * from pg_stat_activity;' | grep idle | grep -c cgspac
"/>
-
+
diff --git a/public/2015-12/index.html b/public/2015-12/index.html
index 9faa5c920..48edb0ae6 100644
--- a/public/2015-12/index.html
+++ b/public/2015-12/index.html
@@ -54,7 +54,7 @@ Replace lzop with xz in log compression cron jobs on DSpace Test—it uses less
"/>
-
+
diff --git a/public/2016-01/index.html b/public/2016-01/index.html
index 5829a8bd9..5fd0cac36 100644
--- a/public/2016-01/index.html
+++ b/public/2016-01/index.html
@@ -44,7 +44,7 @@ Update GitHub wiki for documentation of maintenance tasks.
"/>
-
+
diff --git a/public/2016-02/index.html b/public/2016-02/index.html
index d8dac5320..81375f8ce 100644
--- a/public/2016-02/index.html
+++ b/public/2016-02/index.html
@@ -58,7 +58,7 @@ Also, lots of things like “COTE D`LVOIRE” and “COTE D IVOIRE&r
"/>
-
+
diff --git a/public/2016-03/index.html b/public/2016-03/index.html
index 1094c82cc..002e2696e 100644
--- a/public/2016-03/index.html
+++ b/public/2016-03/index.html
@@ -44,7 +44,7 @@ Reinstall my local (Mac OS X) DSpace stack with Tomcat 7, PostgreSQL 9.3, and Ja
"/>
-
+
diff --git a/public/2016-04/index.html b/public/2016-04/index.html
index ef3330923..6d922724f 100644
--- a/public/2016-04/index.html
+++ b/public/2016-04/index.html
@@ -48,7 +48,7 @@ Also, I noticed the checker log has some errors we should pay attention to:
"/>
-
+
diff --git a/public/2016-05/index.html b/public/2016-05/index.html
index fe9d5022e..4b9dcd497 100644
--- a/public/2016-05/index.html
+++ b/public/2016-05/index.html
@@ -52,7 +52,7 @@ There are 3,000 IPs accessing the REST API in a 24-hour period!
"/>
-
+
diff --git a/public/2016-06/index.html b/public/2016-06/index.html
index 34a7c7742..992c2a457 100644
--- a/public/2016-06/index.html
+++ b/public/2016-06/index.html
@@ -50,7 +50,7 @@ Working on second phase of metadata migration, looks like this will work for mov
"/>
-
+
diff --git a/public/2016-07/index.html b/public/2016-07/index.html
index 2372c52ba..065270a4d 100644
--- a/public/2016-07/index.html
+++ b/public/2016-07/index.html
@@ -66,7 +66,7 @@ In this case the select query was showing 95 results before the update
"/>
-
+
diff --git a/public/2016-08/index.html b/public/2016-08/index.html
index c54b66a44..b1026f75a 100644
--- a/public/2016-08/index.html
+++ b/public/2016-08/index.html
@@ -60,7 +60,7 @@ $ git rebase -i dspace-5.5
"/>
-
+
diff --git a/public/2016-09/index.html b/public/2016-09/index.html
index 4f7d4a528..be0340fae 100644
--- a/public/2016-09/index.html
+++ b/public/2016-09/index.html
@@ -52,7 +52,7 @@ $ ldapsearch -x -H ldaps://svcgroot2.cgiarad.org:3269/ -b "dc=cgiarad,dc=or
"/>
-
+
diff --git a/public/2016-10/index.html b/public/2016-10/index.html
index 9fae05b70..c4f62a230 100644
--- a/public/2016-10/index.html
+++ b/public/2016-10/index.html
@@ -60,7 +60,7 @@ I exported a random item’s metadata as CSV, deleted all columns except id
"/>
-
+
diff --git a/public/2016-11/index.html b/public/2016-11/index.html
index 8f7290b15..ee602cff4 100644
--- a/public/2016-11/index.html
+++ b/public/2016-11/index.html
@@ -44,7 +44,7 @@ Add dc.type to the output options for Atmire’s Listings and Reports module
"/>
-
+
diff --git a/public/2016-12/index.html b/public/2016-12/index.html
index 018d21257..3e55e6a27 100644
--- a/public/2016-12/index.html
+++ b/public/2016-12/index.html
@@ -68,7 +68,7 @@ Another worrying error from dspace.log is:
"/>
-
+
diff --git a/public/2017-01/index.html b/public/2017-01/index.html
index 45f6ef6f6..1fdf1860d 100644
--- a/public/2017-01/index.html
+++ b/public/2017-01/index.html
@@ -44,7 +44,7 @@ I asked on the dspace-tech mailing list because it seems to be broken, and actua
"/>
-
+
diff --git a/public/2017-02/index.html b/public/2017-02/index.html
index c6f40ce0c..df8e47517 100644
--- a/public/2017-02/index.html
+++ b/public/2017-02/index.html
@@ -72,7 +72,7 @@ Looks like we’ll be using cg.identifier.ccafsprojectpii as the field name
"/>
-
+
diff --git a/public/2017-03/index.html b/public/2017-03/index.html
index 57b6602fc..e11421da7 100644
--- a/public/2017-03/index.html
+++ b/public/2017-03/index.html
@@ -76,7 +76,7 @@ $ identify ~/Desktop/alc_contrastes_desafios.jpg
"/>
-
+
diff --git a/public/2017-04/index.html b/public/2017-04/index.html
index bd6969818..6f7a8db0d 100644
--- a/public/2017-04/index.html
+++ b/public/2017-04/index.html
@@ -62,7 +62,7 @@ $ [dspace]/bin/dspace filter-media -f -i 10568/16498 -p "ImageMagick PDF Th
"/>
-
+
diff --git a/public/2017-05/index.html b/public/2017-05/index.html
index 6d759a9bf..bfff20654 100644
--- a/public/2017-05/index.html
+++ b/public/2017-05/index.html
@@ -28,7 +28,7 @@
-
+
diff --git a/public/2017-06/index.html b/public/2017-06/index.html
index e5d5bd3f1..6d8241bda 100644
--- a/public/2017-06/index.html
+++ b/public/2017-06/index.html
@@ -28,7 +28,7 @@
-
+
diff --git a/public/2017-07/index.html b/public/2017-07/index.html
index 245749a93..770a08528 100644
--- a/public/2017-07/index.html
+++ b/public/2017-07/index.html
@@ -56,7 +56,7 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the
"/>
-
+
diff --git a/public/2017-08/index.html b/public/2017-08/index.html
index 49cd5b270..437af2a87 100644
--- a/public/2017-08/index.html
+++ b/public/2017-08/index.html
@@ -76,7 +76,7 @@ Then I cleaned up the author authorities and HTML characters in OpenRefine and s
"/>
-
+
diff --git a/public/2017-09/index.html b/public/2017-09/index.html
index fa00e1f52..cced5faa4 100644
--- a/public/2017-09/index.html
+++ b/public/2017-09/index.html
@@ -52,7 +52,7 @@ Ask Sisay to clean up the WLE approvers a bit, as Marianne’s user account
"/>
-
+
diff --git a/public/2017-10/index.html b/public/2017-10/index.html
index d44f35baf..7fda9722b 100644
--- a/public/2017-10/index.html
+++ b/public/2017-10/index.html
@@ -56,7 +56,7 @@ Add Katherine Lutz to the groups for content submission and edit steps of the CG
"/>
-
+
diff --git a/public/2017-11/index.html b/public/2017-11/index.html
index e5a43a47f..685fc82d1 100644
--- a/public/2017-11/index.html
+++ b/public/2017-11/index.html
@@ -76,7 +76,7 @@ COPY 54701
"/>
-
+
@@ -863,7 +863,7 @@ dspace6=# CREATE EXTENSION pgcrypto;
- Also, local settings are no longer in
build.properties
, they are now in local.cfg
- I’m not sure if we can use separate profiles like we did before with
mvn -Denv=blah
to use blah.properties
-- It seems we need to use “system properties” to override settings, ie:
-Ddspace.dir=/Users/aorth/dspace7
+- It seems we need to use “system properties” to override settings, ie:
-Ddspace.dir=/Users/aorth/dspace6
2017-11-15
diff --git a/public/2017-12/index.html b/public/2017-12/index.html
index fabd2df80..96921ed19 100644
--- a/public/2017-12/index.html
+++ b/public/2017-12/index.html
@@ -46,7 +46,7 @@ The list of connections to XMLUI and REST API for today:
"/>
-
+
diff --git a/public/2018-01/index.html b/public/2018-01/index.html
index 8740da481..6a2162a42 100644
--- a/public/2018-01/index.html
+++ b/public/2018-01/index.html
@@ -92,7 +92,7 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv
-
+
@@ -184,7 +184,7 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv
"/>
-
+
@@ -194,9 +194,9 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv
"@type": "BlogPosting",
"headline": "January, 2018",
"url": "https://alanorth.github.io/cgspace-notes/2018-01/",
- "wordCount": "2324",
+ "wordCount": "2467",
"datePublished": "2018-01-02T08:35:54-08:00",
- "dateModified": "2018-01-11T08:36:59+02:00",
+ "dateModified": "2018-01-11T10:42:35+02:00",
"author": {
"@type": "Person",
"name": "Alan Orth"
@@ -789,6 +789,38 @@ cache_alignment : 64
161797 2607:fa98:40:9:26b6:fdff:feff:1888
+
+- Wow, I just figured out how to set the application name of each database pool in the JNDI config of Tomcat’s
server.xml
:
+
+
+<Resource name="jdbc/dspaceWeb" auth="Container" type="javax.sql.DataSource"
+ driverClassName="org.postgresql.Driver"
+ url="jdbc:postgresql://localhost:5432/dspacetest?ApplicationName=dspaceWeb"
+ username="dspace"
+ password="dspace"
+ initialSize='5'
+ maxActive='75'
+ maxIdle='15'
+ minIdle='5'
+ maxWait='5000'
+ validationQuery='SELECT 1'
+ testOnBorrow='true' />
+
+
+
+- So theoretically I could name each connection “xmlui” or “dspaceWeb” or something meaningful and it would show up in PostgreSQL’s
pg_stat_activity
table!
+- This would be super helpful for figuring out where load was coming from (now I wonder if I could figure out how to graph this)
+- Also, I realized that the
db.jndi
parameter in dspace.cfg needs to match the name
value in your applicaiton’s context—not the global
one
+- Ah hah! Also, I can name the default DSpace connection pool in dspace.cfg as well, like:
+
+
+db.url = jdbc:postgresql://localhost:5432/dspacetest?ApplicationName=dspaceDefault
+
+
+
+- With that it is super easy to see where PostgreSQL connections are coming from in
pg_stat_activity
+
+
diff --git a/public/categories/notes/index.html b/public/categories/notes/index.html
index a86d84a3c..7022e94ed 100644
--- a/public/categories/notes/index.html
+++ b/public/categories/notes/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/cgiar-library-migration/index.html b/public/cgiar-library-migration/index.html
index 1b927a868..7fd1c1b11 100644
--- a/public/cgiar-library-migration/index.html
+++ b/public/cgiar-library-migration/index.html
@@ -28,7 +28,7 @@
-
+
diff --git a/public/index.html b/public/index.html
index 0a1f217d5..eca2cc1e1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/page/2/index.html b/public/page/2/index.html
index 629738a13..a0af95bc7 100644
--- a/public/page/2/index.html
+++ b/public/page/2/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/page/3/index.html b/public/page/3/index.html
index 6ed91afa1..abafc3d8e 100644
--- a/public/page/3/index.html
+++ b/public/page/3/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/post/index.html b/public/post/index.html
index 4c29ecb8b..526244655 100644
--- a/public/post/index.html
+++ b/public/post/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/post/page/2/index.html b/public/post/page/2/index.html
index 53d344c9c..7801f6bb5 100644
--- a/public/post/page/2/index.html
+++ b/public/post/page/2/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/post/page/3/index.html b/public/post/page/3/index.html
index 1acc85685..62f89adca 100644
--- a/public/post/page/3/index.html
+++ b/public/post/page/3/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/robots.txt b/public/robots.txt
index 28997c233..83b9cb92f 100644
--- a/public/robots.txt
+++ b/public/robots.txt
@@ -31,7 +31,7 @@ Disallow: /cgspace-notes/2015-12/
Disallow: /cgspace-notes/2015-11/
Disallow: /cgspace-notes/
Disallow: /cgspace-notes/categories/
-Disallow: /cgspace-notes/categories/notes/
Disallow: /cgspace-notes/tags/notes/
+Disallow: /cgspace-notes/categories/notes/
Disallow: /cgspace-notes/post/
Disallow: /cgspace-notes/tags/
diff --git a/public/sitemap.xml b/public/sitemap.xml
index 94bf36389..c3d3558ce 100644
--- a/public/sitemap.xml
+++ b/public/sitemap.xml
@@ -4,7 +4,7 @@
https://alanorth.github.io/cgspace-notes/2018-01/
- 2018-01-11T08:36:59+02:00
+ 2018-01-11T10:42:35+02:00
@@ -144,7 +144,7 @@
https://alanorth.github.io/cgspace-notes/
- 2018-01-11T08:36:59+02:00
+ 2018-01-11T10:42:35+02:00
0
@@ -153,27 +153,27 @@
0
+
+ https://alanorth.github.io/cgspace-notes/tags/notes/
+ 2018-01-11T10:42:35+02:00
+ 0
+
+
https://alanorth.github.io/cgspace-notes/categories/notes/
2017-09-28T12:00:49+03:00
0
-
- https://alanorth.github.io/cgspace-notes/tags/notes/
- 2018-01-11T08:36:59+02:00
- 0
-
-
https://alanorth.github.io/cgspace-notes/post/
- 2018-01-11T08:36:59+02:00
+ 2018-01-11T10:42:35+02:00
0
https://alanorth.github.io/cgspace-notes/tags/
- 2018-01-11T08:36:59+02:00
+ 2018-01-11T10:42:35+02:00
0
diff --git a/public/tags/notes/index.html b/public/tags/notes/index.html
index 84955f988..15b74f392 100644
--- a/public/tags/notes/index.html
+++ b/public/tags/notes/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/tags/notes/page/2/index.html b/public/tags/notes/page/2/index.html
index dde610dc7..9164eb28c 100644
--- a/public/tags/notes/page/2/index.html
+++ b/public/tags/notes/page/2/index.html
@@ -25,7 +25,7 @@
-
+
diff --git a/public/tags/notes/page/3/index.html b/public/tags/notes/page/3/index.html
index 81d7b91c7..d33d004c0 100644
--- a/public/tags/notes/page/3/index.html
+++ b/public/tags/notes/page/3/index.html
@@ -25,7 +25,7 @@
-
+