mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2018-01-12
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user