diff --git a/content/post/2017-06.md b/content/post/2017-06.md index daf4329f2..80643e455 100644 --- a/content/post/2017-06.md +++ b/content/post/2017-06.md @@ -123,3 +123,19 @@ dspace=# select text_value from metadatavalue where resource_type_id=2 and metad - Marianne from WLE asked if they can have both Phase I and II research themes together in the item submission form - Perhaps we can add them together in the same question for `cg.identifier.wletheme` + +## 2017-06-30 + +- CGSpace went down briefly, I see lots of these errors in the dspace logs: + +``` +Java stacktrace: java.util.NoSuchElementException: Timeout waiting for idle object +``` + +- After looking at the Tomcat logs, Munin graphs, and PostgreSQL connection stats, it seems there is just a high load +- Might be a good time to adjust DSpace's database connection settings, like I first mentioned in April, 2017 after reading the [2017-04 DCAT comments](https://wiki.duraspace.org/display/cmtygp/DCAT+Meeting+April+2017) +- I've adjusted the following in CGSpace's config: + - `db.maxconnections` 30→70 (the default PostgreSQL config allows 100 connections, so DSpace's default of 30 is quite low) + - `db.maxwait` 5000→10000 + - `db.maxidle` 8→20 (DSpace default is -1, unlimited, but we had set it to 8 earlier) +- We will need to adjust this again (as well as the `pg_hba.conf` settings) when we deploy tsega's REST API diff --git a/public/2017-06/index.html b/public/2017-06/index.html index 3d0e12da5..20226b218 100644 --- a/public/2017-06/index.html +++ b/public/2017-06/index.html @@ -13,7 +13,7 @@ - + @@ -45,9 +45,9 @@ "@type": "BlogPosting", "headline": "June, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-06/", - "wordCount": "1107", + "wordCount": "1234", "datePublished": "2017-06-01T10:14:52+03:00", - "dateModified": "2017-06-20T12:00:40+03:00", + "dateModified": "2017-06-25T08:47:28+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -262,6 +262,28 @@ $ JAVA_OPTS="-Xmx1024m -Dfile.encoding=UTF-8" [dspace]/bin/dspace impo
cg.identifier.wletheme
Java stacktrace: java.util.NoSuchElementException: Timeout waiting for idle object
+
+
+db.maxconnections
30→70 (the default PostgreSQL config allows 100 connections, so DSpace’s default of 30 is quite low)db.maxwait
5000→10000db.maxidle
8→20 (DSpace default is -1, unlimited, but we had set it to 8 earlier)pg_hba.conf
settings) when we deploy tsega’s REST API