diff --git a/content/post/2018-01.md b/content/post/2018-01.md index 49ee5de97..215ef6202 100644 --- a/content/post/2018-01.md +++ b/content/post/2018-01.md @@ -539,7 +539,7 @@ db.url = jdbc:postgresql://localhost:5432/dspacetest?ApplicationName=dspaceDefau - 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): +- Ooh, I just saw 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. @@ -993,3 +993,8 @@ $ ./rest-find-collections.py 10568/1 | wc -l 308 $ ./rest-find-collections.py 10568/1 | grep -i untitled ``` + +- Looking at the [Tomcat connector docs](https://tomcat.apache.org/tomcat-7.0-doc/config/http.html) I think we really need to increase `maxThreads` +- The default is 200, which can easily be taken up by bots considering that Google and Bing each browse with fifty (50) connections each sometimes! +- Before I increase this I want to see if I can measure and graph this, and then benchmark +- I still want to bump up `acceptorThreadCount` from 1 to 2 as well, as the documentation says this should be increased on multi-core systems diff --git a/public/2018-01/index.html b/public/2018-01/index.html index 4c0d513a1..401421d87 100644 --- a/public/2018-01/index.html +++ b/public/2018-01/index.html @@ -92,7 +92,7 @@ Danny wrote to ask for help renewing the wildcard ilri.org certificate and I adv - + @@ -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": "5530", + "wordCount": "5612", "datePublished": "2018-01-02T08:35:54-08:00", - "dateModified": "2018-01-20T11:15:07+02:00", + "dateModified": "2018-01-22T15:38:33+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -850,7 +850,7 @@ cache_alignment : 64
maxSpareThreads
in the docs so that might be an erroracceptorThreadCount
setting (in Tomcat 7 and 8.5):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.
@@ -1356,6 +1356,13 @@ $ docker exec dspace_db psql -U dspace -f /tmp/update-sequences.sql dspace
$ ./rest-find-collections.py 10568/1 | grep -i untitled
+maxThreads
acceptorThreadCount
from 1 to 2 as well, as the documentation says this should be increased on multi-core systems