mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-25 08:00:18 +01:00
Add notes for 2018-01-12
This commit is contained in:
parent
21acf07165
commit
2039917254
@ -516,3 +516,33 @@ db.url = jdbc:postgresql://localhost:5432/dspacetest?ApplicationName=dspaceDefau
|
||||
```
|
||||
|
||||
- With that it is super easy to see where PostgreSQL connections are coming from in `pg_stat_activity`
|
||||
|
||||
## 2018-01-12
|
||||
|
||||
- I'm looking at the [DSpace 6.0 Install docs](https://wiki.duraspace.org/display/DSDOC6x/Installing+DSpace#InstallingDSpace-ServletEngine(ApacheTomcat7orlater,Jetty,CauchoResinorequivalent)) and notice they tweak the number of threads in their Tomcat connector:
|
||||
|
||||
```
|
||||
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
|
||||
<Connector port="8080"
|
||||
maxThreads="150"
|
||||
minSpareThreads="25"
|
||||
maxSpareThreads="75"
|
||||
enableLookups="false"
|
||||
redirectPort="8443"
|
||||
acceptCount="100"
|
||||
connectionTimeout="20000"
|
||||
disableUploadTimeout="true"
|
||||
URIEncoding="UTF-8"/>
|
||||
```
|
||||
|
||||
- In Tomcat 8.5 the `maxThreads` defaults to 200 which is probably fine, but tweaking `minSpareThreads` could be good
|
||||
- I don't see a setting for `maxSpareThreads` in the docs so that might be an error
|
||||
- Looks like in Tomcat 8.5 the default URIEncoding for Connectors is UTF-8, so we don't need to specify that manually anymore: https://tomcat.apache.org/tomcat-8.5-doc/config/http.html
|
||||
-
|
||||
- Ooh, I just the `acceptorThreadCount` setting (in Tomcat 7 and 8.5):
|
||||
|
||||
```
|
||||
The number of threads to be used to accept connections. Increase this value on a multi CPU machine, although you would never really need more than 2. Also, with a lot of non keep alive connections, you might want to increase this value as well. Default value is 1.
|
||||
```
|
||||
|
||||
- That could be very interesting
|
||||
|
@ -38,7 +38,7 @@ COPY 54701
|
||||
|
||||
<meta property="article:published_time" content="2017-11-02T09:37:54+02:00"/>
|
||||
|
||||
<meta property="article:modified_time" content="2017-12-17T10:43:56+02:00"/>
|
||||
<meta property="article:modified_time" content="2018-01-12T06:07:03+02:00"/>
|
||||
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ COPY 54701
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2017-11/",
|
||||
"wordCount": "5428",
|
||||
"datePublished": "2017-11-02T09:37:54+02:00",
|
||||
"dateModified": "2017-12-17T10:43:56+02:00",
|
||||
"dateModified": "2018-01-12T06:07:03+02:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
|
@ -92,7 +92,7 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv
|
||||
|
||||
<meta property="article:published_time" content="2018-01-02T08:35:54-08:00"/>
|
||||
|
||||
<meta property="article:modified_time" content="2018-01-11T10:42:35+02:00"/>
|
||||
<meta property="article:modified_time" content="2018-01-12T06:07:03+02:00"/>
|
||||
|
||||
|
||||
|
||||
@ -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": "2467",
|
||||
"wordCount": "2630",
|
||||
"datePublished": "2018-01-02T08:35:54-08:00",
|
||||
"dateModified": "2018-01-11T10:42:35+02:00",
|
||||
"dateModified": "2018-01-12T06:07:03+02:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -821,6 +821,40 @@ cache_alignment : 64
|
||||
<li>With that it is super easy to see where PostgreSQL connections are coming from in <code>pg_stat_activity</code></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2018-01-12">2018-01-12</h2>
|
||||
|
||||
<ul>
|
||||
<li>I’m looking at the <a href="https://wiki.duraspace.org/display/DSDOC6x/Installing+DSpace#InstallingDSpace-ServletEngine(ApacheTomcat7orlater,Jetty,CauchoResinorequivalent)">DSpace 6.0 Install docs</a> and notice they tweak the number of threads in their Tomcat connector:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code><!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
|
||||
<Connector port="8080"
|
||||
maxThreads="150"
|
||||
minSpareThreads="25"
|
||||
maxSpareThreads="75"
|
||||
enableLookups="false"
|
||||
redirectPort="8443"
|
||||
acceptCount="100"
|
||||
connectionTimeout="20000"
|
||||
disableUploadTimeout="true"
|
||||
URIEncoding="UTF-8"/>
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>In Tomcat 8.5 the <code>maxThreads</code> defaults to 200 which is probably fine, but tweaking <code>minSpareThreads</code> could be good</li>
|
||||
<li>I don’t see a setting for <code>maxSpareThreads</code> in the docs so that might be an error</li>
|
||||
<li>Looks like in Tomcat 8.5 the default URIEncoding for Connectors is UTF-8, so we don’t need to specify that manually anymore: <a href="https://tomcat.apache.org/tomcat-8.5-doc/config/http.html">https://tomcat.apache.org/tomcat-8.5-doc/config/http.html</a></li>
|
||||
<li></li>
|
||||
<li>Ooh, I just the <code>acceptorThreadCount</code> setting (in Tomcat 7 and 8.5):</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>The number of threads to be used to accept connections. Increase this value on a multi CPU machine, although you would never really need more than 2. Also, with a lot of non keep alive connections, you might want to increase this value as well. Default value is 1.
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>That could be very interesting</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2018-01/</loc>
|
||||
<lastmod>2018-01-11T10:42:35+02:00</lastmod>
|
||||
<lastmod>2018-01-12T06:07:03+02:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2017-11/</loc>
|
||||
<lastmod>2017-12-17T10:43:56+02:00</lastmod>
|
||||
<lastmod>2018-01-12T06:07:03+02:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
@ -144,7 +144,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2018-01-11T10:42:35+02:00</lastmod>
|
||||
<lastmod>2018-01-12T06:07:03+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -155,7 +155,7 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
|
||||
<lastmod>2018-01-11T10:42:35+02:00</lastmod>
|
||||
<lastmod>2018-01-12T06:07:03+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
@ -167,13 +167,13 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
|
||||
<lastmod>2018-01-11T10:42:35+02:00</lastmod>
|
||||
<lastmod>2018-01-12T06:07:03+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
|
||||
<lastmod>2018-01-11T10:42:35+02:00</lastmod>
|
||||
<lastmod>2018-01-12T06:07:03+02:00</lastmod>
|
||||
<priority>0</priority>
|
||||
</url>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user