From 529a81b5bb86131b2f93ce70e4077cf578ffe7fc Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 24 Mar 2019 16:11:09 +0200 Subject: [PATCH] Update notes for 2019-03-24 --- content/posts/2019-03.md | 14 ++++++++++++++ docs/2019-03/index.html | 26 +++++++++++++++++++++++--- docs/robots.txt | 2 +- docs/sitemap.xml | 20 ++++++++++---------- 4 files changed, 48 insertions(+), 14 deletions(-) diff --git a/content/posts/2019-03.md b/content/posts/2019-03.md index 9e68b4954..ff18c1518 100644 --- a/content/posts/2019-03.md +++ b/content/posts/2019-03.md @@ -698,4 +698,18 @@ org.postgresql.util.PSQLException: This statement has been closed. - I compiled this [TomcatJdbcConnectionTest](https://github.com/gnosly/TomcatJdbcConnectionTest) and created a bunch of database connections and waited a few minutes but they never got abandoned until I created over `maxActive` (75), after which almost all were purged at once - So perhaps our settings are not working right, but at least I know the logging works now... +## 2019-03-24 + +- I did some more tests with the [TomcatJdbcConnectionTest](https://github.com/gnosly/TomcatJdbcConnectionTest) thing and while monitoring the number of active connections in jconsole and after adjusting the limits quite low I eventually saw some connections get abandoned +- I forgot that to connect to a remote JMX session with jconsole you need to use a dynamic SSH SOCKS proxy (as I originally [discovered in 2017-11]({{< relref "2017-11.md" >}}): + +``` +$ jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=3000 service:jmx:rmi:///jndi/rmi://localhost:5400/jmxrmi -J-DsocksNonProxyHosts= +``` + +- I need to remember to check the active connections next time we have issues with blank item pages on CGSpace +- In other news, I've been running G1GC on DSpace Test (linode19) since 2018-11-08 without realizing it, which is probably a good thing +- I deployed the latest `5_x-prod` branch on CGSpace (linode18) and added more validation to the JDBC pool in our Tomcat config + - This includes the new `testWhileIdle` and `testOnConnect` pool settings as well as the two new JDBC interceptors: `StatementFinalizer` and `ConnectionState` that should hopefully make sure our connections in the pool are valid + diff --git a/docs/2019-03/index.html b/docs/2019-03/index.html index 56521e928..eb8c29c58 100644 --- a/docs/2019-03/index.html +++ b/docs/2019-03/index.html @@ -25,7 +25,7 @@ I think I will need to ask Udana to re-copy and paste the abstracts with more ca - + @@ -55,9 +55,9 @@ I think I will need to ask Udana to re-copy and paste the abstracts with more ca "@type": "BlogPosting", "headline": "March, 2019", "url": "https://alanorth.github.io/cgspace-notes/2019-03/", - "wordCount": "4332", + "wordCount": "4494", "datePublished": "2019-03-01T12:16:30+01:00", - "dateModified": "2019-03-23T12:50:02+02:00", + "dateModified": "2019-03-24T09:20:19+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -944,6 +944,26 @@ org.postgresql.util.PSQLException: This statement has been closed. +

2019-03-24

+ + + +
$ jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=3000 service:jmx:rmi:///jndi/rmi://localhost:5400/jmxrmi -J-DsocksNonProxyHosts=
+
+ + + diff --git a/docs/robots.txt b/docs/robots.txt index 9c8f41429..2b88ae317 100644 --- a/docs/robots.txt +++ b/docs/robots.txt @@ -45,7 +45,7 @@ Disallow: /cgspace-notes/2015-12/ Disallow: /cgspace-notes/2015-11/ Disallow: /cgspace-notes/ Disallow: /cgspace-notes/categories/ -Disallow: /cgspace-notes/tags/notes/ Disallow: /cgspace-notes/categories/notes/ +Disallow: /cgspace-notes/tags/notes/ Disallow: /cgspace-notes/posts/ Disallow: /cgspace-notes/tags/ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 65630392d..afb80b8d3 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2019-03/ - 2019-03-23T12:50:02+02:00 + 2019-03-24T09:20:19+02:00 @@ -214,7 +214,7 @@ https://alanorth.github.io/cgspace-notes/ - 2019-03-23T12:50:02+02:00 + 2019-03-24T09:20:19+02:00 0 @@ -223,27 +223,27 @@ 0 - - https://alanorth.github.io/cgspace-notes/tags/notes/ - 2019-03-23T12:50:02+02:00 - 0 - - https://alanorth.github.io/cgspace-notes/categories/notes/ 2018-03-09T22:10:33+02:00 0 + + https://alanorth.github.io/cgspace-notes/tags/notes/ + 2019-03-24T09:20:19+02:00 + 0 + + https://alanorth.github.io/cgspace-notes/posts/ - 2019-03-23T12:50:02+02:00 + 2019-03-24T09:20:19+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2019-03-23T12:50:02+02:00 + 2019-03-24T09:20:19+02:00 0