Update notes

This commit is contained in:
2018-02-22 19:20:18 +02:00
parent def64b0799
commit 2fbd9bcae8
3 changed files with 33 additions and 29 deletions

View File

@ -793,19 +793,21 @@ $ cat orcid-test-values.txt
8686 45.5.184.196
```
- While looking at the logs I see some new bot:
- So I don't see any definite cause for this crash, I see a shit ton of abandoned PostgreSQL connections today around 1PM!
```
# grep -c 'org.apache.tomcat.jdbc.pool.ConnectionPool abandon' /var/log/tomcat7/catalina.out
729
# grep 'Feb 22, 2018 1' /var/log/tomcat7/catalina.out | grep -c 'org.apache.tomcat.jdbc.pool.ConnectionPool abandon'
519
```
- I think the `removeAbandonedTimeout` might still be too low (I increased it from 60 to 90 seconds last week)
- Abandoned connections is not a cause but a symptom, though perhaps something more like a few minutes is better?
- Also, while looking at the logs I see some new bot:
```
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.4.2661.102 Safari/537.36; 360Spider
```
- It seems to re-use its user agent but makes tons of useless requests and I wonder if I should add ".*spider.*" to the Tomcat Crawler Session Manager valve?
- This is definitely not good:
```
# grep -c 'org.apache.tomcat.jdbc.pool.ConnectionPool abandon' /var/log/tomcat7/catalina.out
729
```
- I think the `removeAbandonedTimeout` might still be too low (I increased it from 60 to 90 seconds last week)
- Perhaps something more like a few minutes is better?