mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-11 22:43:20 +01:00
Update notes for 2018-07-01
This commit is contained in:
parent
3910698e4f
commit
45b86583f5
@ -7,26 +7,45 @@ tags: ["Notes"]
|
|||||||
|
|
||||||
## 2018-07-01
|
## 2018-07-01
|
||||||
|
|
||||||
- Test the DSpace 5.8 upgrade on DSpace Test
|
- I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:
|
||||||
- First take a backup of the current database:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
```
|
```
|
||||||
|
|
||||||
- During the `mvn package` stage I kept getting issues with java running out of memory:
|
- During the `mvn package` stage on the 5.8 branch I kept getting issues with java running out of memory:
|
||||||
|
|
||||||
```
|
```
|
||||||
There is insufficient memory for the Java Runtime Environment to continue.
|
There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
```
|
```
|
||||||
|
|
||||||
- So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):
|
<!--more-->
|
||||||
|
|
||||||
|
- As the machine only has 8GB of RAM, I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
||||||
$ mvn package...
|
$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=dspacetest.cgiar.org -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--more-->
|
- Then I stopped the Tomcat 7 service, ran the ant update, and manually ran the old and ignored SQL migrations:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo su - postgres
|
||||||
|
$ psql dspace
|
||||||
|
...
|
||||||
|
dspace=# begin;
|
||||||
|
BEGIN
|
||||||
|
dspace=# \i Atmire-DSpace-5.8-Schema-Migration.sql
|
||||||
|
DELETE 0
|
||||||
|
UPDATE 1
|
||||||
|
DELETE 1
|
||||||
|
dspace=# commit
|
||||||
|
dspace=# \q
|
||||||
|
$ exit
|
||||||
|
$ dspace database migrate ignored
|
||||||
|
```
|
||||||
|
|
||||||
|
- After that I started Tomcat 7 and DSpace seems to be working, now I need to tell our colleagues to try stuff and report issues they have
|
||||||
|
|
||||||
<!-- vim: set sw=2 ts=2: -->
|
<!-- vim: set sw=2 ts=2: -->
|
||||||
|
263
docs/2018-07/index.html
Normal file
263
docs/2018-07/index.html
Normal file
@ -0,0 +1,263 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
<meta property="og:title" content="July, 2018" />
|
||||||
|
<meta property="og:description" content="2018-07-01
|
||||||
|
|
||||||
|
|
||||||
|
I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:
|
||||||
|
|
||||||
|
|
||||||
|
$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
During the mvn package stage on the 5.8 branch I kept getting issues with java running out of memory:
|
||||||
|
|
||||||
|
|
||||||
|
There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
|
|
||||||
|
|
||||||
|
" />
|
||||||
|
<meta property="og:type" content="article" />
|
||||||
|
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2018-07/" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="article:published_time" content="2018-07-01T12:56:54+03:00"/>
|
||||||
|
|
||||||
|
<meta property="article:modified_time" content="2018-07-01T14:34:56+03:00"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary"/>
|
||||||
|
<meta name="twitter:title" content="July, 2018"/>
|
||||||
|
<meta name="twitter:description" content="2018-07-01
|
||||||
|
|
||||||
|
|
||||||
|
I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:
|
||||||
|
|
||||||
|
|
||||||
|
$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
During the mvn package stage on the 5.8 branch I kept getting issues with java running out of memory:
|
||||||
|
|
||||||
|
|
||||||
|
There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
|
|
||||||
|
|
||||||
|
"/>
|
||||||
|
<meta name="generator" content="Hugo 0.42.1" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "http://schema.org",
|
||||||
|
"@type": "BlogPosting",
|
||||||
|
"headline": "July, 2018",
|
||||||
|
"url": "https://alanorth.github.io/cgspace-notes/2018-07/",
|
||||||
|
"wordCount": "185",
|
||||||
|
"datePublished": "2018-07-01T12:56:54+03:00",
|
||||||
|
"dateModified": "2018-07-01T14:34:56+03:00",
|
||||||
|
"author": {
|
||||||
|
"@type": "Person",
|
||||||
|
"name": "Alan Orth"
|
||||||
|
},
|
||||||
|
"keywords": "Notes"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="canonical" href="https://alanorth.github.io/cgspace-notes/2018-07/">
|
||||||
|
|
||||||
|
<title>July, 2018 | CGSpace Notes</title>
|
||||||
|
|
||||||
|
<!-- combined, minified CSS -->
|
||||||
|
<link href="https://alanorth.github.io/cgspace-notes/css/style.css" rel="stylesheet" integrity="sha384-TbfEhJn4HkgPUIZUhhHaAYsycYKHxSuIloCjZOiyCSpbVunRQxg5T5pxKVFwxilF" crossorigin="anonymous">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="blog-masthead">
|
||||||
|
<div class="container">
|
||||||
|
<nav class="nav blog-nav">
|
||||||
|
<a class="nav-link " href="https://alanorth.github.io/cgspace-notes/">Home</a>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<header class="blog-header">
|
||||||
|
<div class="container">
|
||||||
|
<h1 class="blog-title"><a href="https://alanorth.github.io/cgspace-notes/" rel="home">CGSpace Notes</a></h1>
|
||||||
|
<p class="lead blog-description">Documenting day-to-day work on the <a href="https://cgspace.cgiar.org">CGSpace</a> repository.</p>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-8 blog-main">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<article class="blog-post">
|
||||||
|
<header>
|
||||||
|
<h2 class="blog-post-title"><a href="https://alanorth.github.io/cgspace-notes/2018-07/">July, 2018</a></h2>
|
||||||
|
<p class="blog-post-meta"><time datetime="2018-07-01T12:56:54+03:00">Sun Jul 01, 2018</time> by Alan Orth in
|
||||||
|
|
||||||
|
<i class="fa fa-tag" aria-hidden="true"></i> <a href="/cgspace-notes/tags/notes" rel="tag">Notes</a>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
<h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p></p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>As the machine only has 8GB of RAM, I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
||||||
|
$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=dspacetest.cgiar.org -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Then I stopped the Tomcat 7 service, ran the ant update, and manually ran the old and ignored SQL migrations:</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<pre><code>$ sudo su - postgres
|
||||||
|
$ psql dspace
|
||||||
|
...
|
||||||
|
dspace=# begin;
|
||||||
|
BEGIN
|
||||||
|
dspace=# \i Atmire-DSpace-5.8-Schema-Migration.sql
|
||||||
|
DELETE 0
|
||||||
|
UPDATE 1
|
||||||
|
DELETE 1
|
||||||
|
dspace=# commit
|
||||||
|
dspace=# \q
|
||||||
|
$ exit
|
||||||
|
$ dspace database migrate ignored
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>After that I started Tomcat 7 and DSpace seems to be working, now I need to tell our colleagues to try stuff and report issues they have</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- vim: set sw=2 ts=2: -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div> <!-- /.blog-main -->
|
||||||
|
|
||||||
|
<aside class="col-sm-3 ml-auto blog-sidebar">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="sidebar-module">
|
||||||
|
<h4>Recent Posts</h4>
|
||||||
|
<ol class="list-unstyled">
|
||||||
|
|
||||||
|
|
||||||
|
<li><a href="/cgspace-notes/2018-07/">July, 2018</a></li>
|
||||||
|
|
||||||
|
<li><a href="/cgspace-notes/2018-06/">June, 2018</a></li>
|
||||||
|
|
||||||
|
<li><a href="/cgspace-notes/2018-05/">May, 2018</a></li>
|
||||||
|
|
||||||
|
<li><a href="/cgspace-notes/2018-04/">April, 2018</a></li>
|
||||||
|
|
||||||
|
<li><a href="/cgspace-notes/2018-03/">March, 2018</a></li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="sidebar-module">
|
||||||
|
<h4>Links</h4>
|
||||||
|
<ol class="list-unstyled">
|
||||||
|
|
||||||
|
<li><a href="https://cgspace.cgiar.org">CGSpace</a></li>
|
||||||
|
|
||||||
|
<li><a href="https://dspacetest.cgiar.org">DSpace Test</a></li>
|
||||||
|
|
||||||
|
<li><a href="https://github.com/ilri/DSpace">CGSpace @ GitHub</a></li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
</div> <!-- /.row -->
|
||||||
|
</div> <!-- /.container -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<footer class="blog-footer">
|
||||||
|
<p>
|
||||||
|
|
||||||
|
Blog template created by <a href="https://twitter.com/mdo">@mdo</a>, ported to Hugo by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="#">Back to top</a>
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -112,28 +112,19 @@
|
|||||||
<h2 id="2018-07-01">2018-07-01</h2>
|
<h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
|
@ -113,28 +113,19 @@
|
|||||||
<h2 id="2018-07-01">2018-07-01</h2>
|
<h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
|
@ -20,28 +20,19 @@
|
|||||||
<description><h2 id="2018-07-01">2018-07-01</h2>
|
<description><h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS=&quot;-Dfile.encoding=UTF-8 -Xmx1024m&quot;
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p></description>
|
<p></p></description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
@ -113,28 +113,19 @@
|
|||||||
<h2 id="2018-07-01">2018-07-01</h2>
|
<h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
|
@ -20,28 +20,19 @@
|
|||||||
<description><h2 id="2018-07-01">2018-07-01</h2>
|
<description><h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS=&quot;-Dfile.encoding=UTF-8 -Xmx1024m&quot;
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p></description>
|
<p></p></description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/2018-07/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/2018-07/</loc>
|
||||||
<lastmod>2018-07-01T12:56:54+03:00</lastmod>
|
<lastmod>2018-07-01T14:34:56+03:00</lastmod>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
@ -174,7 +174,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||||
<lastmod>2018-07-01T12:56:54+03:00</lastmod>
|
<lastmod>2018-07-01T14:34:56+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -185,7 +185,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||||
<lastmod>2018-07-01T12:56:54+03:00</lastmod>
|
<lastmod>2018-07-01T14:34:56+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -197,13 +197,13 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||||
<lastmod>2018-07-01T12:56:54+03:00</lastmod>
|
<lastmod>2018-07-01T14:34:56+03: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>2018-07-01T12:56:54+03:00</lastmod>
|
<lastmod>2018-07-01T14:34:56+03:00</lastmod>
|
||||||
<priority>0</priority>
|
<priority>0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
@ -113,28 +113,19 @@
|
|||||||
<h2 id="2018-07-01">2018-07-01</h2>
|
<h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
|
@ -98,28 +98,19 @@
|
|||||||
<h2 id="2018-07-01">2018-07-01</h2>
|
<h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
<a href='https://alanorth.github.io/cgspace-notes/2018-07/'>Read more →</a>
|
||||||
</article>
|
</article>
|
||||||
|
@ -20,28 +20,19 @@
|
|||||||
<description><h2 id="2018-07-01">2018-07-01</h2>
|
<description><h2 id="2018-07-01">2018-07-01</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>Test the DSpace 5.8 upgrade on DSpace Test</li>
|
<li>I want to upgrade DSpace Test to DSpace 5.8 so I took a backup of its current database just in case:</li>
|
||||||
<li>First take a backup of the current database:</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
<pre><code>$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-07-01.backup dspace
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>During the <code>mvn package</code> stage I kept getting issues with java running out of memory:</li>
|
<li>During the <code>mvn package</code> stage on the 5.8 branch I kept getting issues with java running out of memory:</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
<pre><code>There is insufficient memory for the Java Runtime Environment to continue.
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>So I reduced the Tomcat memory heap from 5120m to 4096m so I could try to allocate more to the build process (machine only has 8GB of RAM):</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<pre><code>$ export JAVA_OPTS=&quot;-Dfile.encoding=UTF-8 -Xmx1024m&quot;
|
|
||||||
$ mvn package...
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p></p></description>
|
<p></p></description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user