From def64b079906fdd39aa650dc587d0d2279e962a4 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 22 Feb 2018 18:10:11 +0200 Subject: [PATCH] Add notes for 2018-02-22 --- content/post/2018-02.md | 53 +++++++++++++++++++++++++++++++++ docs/2018-02/index.html | 65 +++++++++++++++++++++++++++++++++++++++-- docs/sitemap.xml | 10 +++---- 3 files changed, 120 insertions(+), 8 deletions(-) diff --git a/content/post/2018-02.md b/content/post/2018-02.md index 6654cb9e0..f255e60e5 100644 --- a/content/post/2018-02.md +++ b/content/post/2018-02.md @@ -756,3 +756,56 @@ $ cat orcid-test-values.txt - I told them that it's their JavaScript that is fucked up - Remove CPWF project number and Humidtropics subject from submission form ([#3](https://github.com/alanorth/DSpace/pull/3)) - I accidentally merged it into my own repository, oops + +## 2018-02-22 + +- CGSpace was apparently down today around 13:00 server time and I didn't get any emails on my phone, but saw them later on the computer +- It looks like Sisay restarted Tomcat because I was offline +- There was absolutely nothing interesting going on at 13:00 on the server, WTF? + +``` +# cat /var/log/nginx/*.log | grep -E "22/Feb/2018:13" | awk '{print $1}' | sort | uniq -c | sort -n | tail -n 10 + 55 192.99.39.235 + 60 207.46.13.26 + 62 40.77.167.38 + 65 207.46.13.23 + 103 41.57.108.208 + 120 104.196.152.243 + 133 104.154.216.0 + 145 68.180.228.117 + 159 54.92.197.82 + 231 5.9.6.51 +``` + +- Otherwise there was pretty normal traffic the rest of the day: + +``` +# zcat --force /var/log/nginx/*.log /var/log/nginx/*.log.1 | grep -E "22/Feb/2018" | awk '{print $1}' | sort | uniq -c | sort -n | tail -n 10 + 839 216.244.66.245 + 1074 68.180.228.117 + 1114 157.55.39.100 + 1162 207.46.13.26 + 1178 207.46.13.23 + 2749 104.196.152.243 + 3109 50.116.102.77 + 4199 70.32.83.92 + 5208 5.9.6.51 + 8686 45.5.184.196 +``` + +- 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? diff --git a/docs/2018-02/index.html b/docs/2018-02/index.html index 323fb81c7..9d18cdf88 100644 --- a/docs/2018-02/index.html +++ b/docs/2018-02/index.html @@ -23,7 +23,7 @@ I copied the logic in the jmx_tomcat_dbpools provided by Ubuntu’s munin-pl - + @@ -57,9 +57,9 @@ I copied the logic in the jmx_tomcat_dbpools provided by Ubuntu’s munin-pl "@type": "BlogPosting", "headline": "February, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-02/", - "wordCount": "4708", + "wordCount": "4946", "datePublished": "2018-02-01T16:28:54+02:00", - "dateModified": "2018-02-20T14:47:28+02:00", + "dateModified": "2018-02-20T15:32:50+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -972,6 +972,65 @@ TypeError: 'NoneType' object is not subscriptable
  • I accidentally merged it into my own repository, oops
  • +

    2018-02-22

    + + + +
    # cat /var/log/nginx/*.log | grep -E "22/Feb/2018:13" | awk '{print $1}' | sort | uniq -c | sort -n | tail -n 10
    +     55 192.99.39.235
    +     60 207.46.13.26
    +     62 40.77.167.38
    +     65 207.46.13.23
    +    103 41.57.108.208
    +    120 104.196.152.243
    +    133 104.154.216.0
    +    145 68.180.228.117
    +    159 54.92.197.82
    +    231 5.9.6.51
    +
    + + + +
    # zcat --force /var/log/nginx/*.log /var/log/nginx/*.log.1 | grep -E "22/Feb/2018" | awk '{print $1}' | sort | uniq -c | sort -n | tail -n 10
    +    839 216.244.66.245
    +   1074 68.180.228.117
    +   1114 157.55.39.100
    +   1162 207.46.13.26
    +   1178 207.46.13.23
    +   2749 104.196.152.243
    +   3109 50.116.102.77
    +   4199 70.32.83.92
    +   5208 5.9.6.51
    +   8686 45.5.184.196
    +
    + + + +
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.4.2661.102 Safari/537.36; 360Spider
    +
    + + + +
    # grep -c 'org.apache.tomcat.jdbc.pool.ConnectionPool abandon' /var/log/tomcat7/catalina.out
    +729
    +
    + + + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 42e34cf74..8607907f8 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-02/ - 2018-02-20T14:47:28+02:00 + 2018-02-20T15:32:50+02:00 @@ -149,7 +149,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-02-20T14:47:28+02:00 + 2018-02-20T15:32:50+02:00 0 @@ -160,7 +160,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-02-20T14:47:28+02:00 + 2018-02-20T15:32:50+02:00 0 @@ -172,13 +172,13 @@ https://alanorth.github.io/cgspace-notes/post/ - 2018-02-20T14:47:28+02:00 + 2018-02-20T15:32:50+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-02-20T14:47:28+02:00 + 2018-02-20T15:32:50+02:00 0