Add notes for 2017-06-30

This commit is contained in:
Alan Orth 2017-06-30 15:28:25 +03:00
parent 3cf0733484
commit 356ab66128
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 46 additions and 8 deletions

View File

@ -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 - 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` - 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

View File

@ -13,7 +13,7 @@
<meta property="article:published_time" content="2017-06-01T10:14:52&#43;03:00"/> <meta property="article:published_time" content="2017-06-01T10:14:52&#43;03:00"/>
<meta property="article:modified_time" content="2017-06-20T12:00:40&#43;03:00"/> <meta property="article:modified_time" content="2017-06-25T08:47:28&#43;02:00"/>
@ -45,9 +45,9 @@
"@type": "BlogPosting", "@type": "BlogPosting",
"headline": "June, 2017", "headline": "June, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-06/", "url": "https://alanorth.github.io/cgspace-notes/2017-06/",
"wordCount": "1107", "wordCount": "1234",
"datePublished": "2017-06-01T10:14:52&#43;03:00", "datePublished": "2017-06-01T10:14:52&#43;03:00",
"dateModified": "2017-06-20T12:00:40&#43;03:00", "dateModified": "2017-06-25T08:47:28&#43;02:00",
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": "Alan Orth" "name": "Alan Orth"
@ -262,6 +262,28 @@ $ JAVA_OPTS=&quot;-Xmx1024m -Dfile.encoding=UTF-8&quot; [dspace]/bin/dspace impo
<li>Perhaps we can add them together in the same question for <code>cg.identifier.wletheme</code></li> <li>Perhaps we can add them together in the same question for <code>cg.identifier.wletheme</code></li>
</ul> </ul>
<h2 id="2017-06-30">2017-06-30</h2>
<ul>
<li>CGSpace went down briefly, I see lots of these errors in the dspace logs:</li>
</ul>
<pre><code>Java stacktrace: java.util.NoSuchElementException: Timeout waiting for idle object
</code></pre>
<ul>
<li>After looking at the Tomcat logs, Munin graphs, and PostgreSQL connection stats, it seems there is just a high load</li>
<li>Might be a good time to adjust DSpace&rsquo;s database connection settings, like I first mentioned in April, 2017 after reading the <a href="https://wiki.duraspace.org/display/cmtygp/DCAT+Meeting+April+2017">2017-04 DCAT comments</a></li>
<li>I&rsquo;ve adjusted the following in CGSpace&rsquo;s config:
<ul>
<li><code>db.maxconnections</code> 30→70 (the default PostgreSQL config allows 100 connections, so DSpace&rsquo;s default of 30 is quite low)</li>
<li><code>db.maxwait</code> 5000→10000</li>
<li><code>db.maxidle</code> 8→20 (DSpace default is -1, unlimited, but we had set it to 8 earlier)</li>
</ul></li>
<li>We will need to adjust this again (as well as the <code>pg_hba.conf</code> settings) when we deploy tsega&rsquo;s REST API</li>
</ul>

View File

@ -4,7 +4,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/2017-06/</loc> <loc>https://alanorth.github.io/cgspace-notes/2017-06/</loc>
<lastmod>2017-06-20T12:00:40+03:00</lastmod> <lastmod>2017-06-25T08:47:28+02:00</lastmod>
</url> </url>
<url> <url>
@ -104,7 +104,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/</loc> <loc>https://alanorth.github.io/cgspace-notes/</loc>
<lastmod>2017-06-20T12:00:40+03:00</lastmod> <lastmod>2017-06-25T08:47:28+02:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
@ -115,19 +115,19 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc> <loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
<lastmod>2017-06-20T12:00:40+03:00</lastmod> <lastmod>2017-06-25T08:47:28+02:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/post/</loc> <loc>https://alanorth.github.io/cgspace-notes/post/</loc>
<lastmod>2017-06-20T12:00:40+03:00</lastmod> <lastmod>2017-06-25T08:47:28+02:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc> <loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
<lastmod>2017-06-20T12:00:40+03:00</lastmod> <lastmod>2017-06-25T08:47:28+02:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>