diff --git a/content/posts/2021-04.md b/content/posts/2021-04.md index ec55d5adf..90de7d570 100644 --- a/content/posts/2021-04.md +++ b/content/posts/2021-04.md @@ -299,8 +299,17 @@ $ psql -c 'SELECT * FROM pg_locks pl LEFT JOIN pg_stat_activity psa ON pl.pid = 4582 ``` -- I don't know what the hell is going on -- While looking at the logs I see that MEL is trying to log into CGSpace's REST API and delete items: +- I don't know what the hell is going on, but the PostgreSQL connections and locks are way higher than ever before: + +![PostgreSQL connections week](/cgspace-notes/2021/04/postgres_connections_cgspace-week.png) +![PostgreSQL locks week](/cgspace-notes/2021/04/postgres_locks_cgspace-week.png) +![Tomcat database pool](/cgspace-notes/2021/04/jmx_tomcat_dbpools-week.png) + +- Otherwise, the number of DSpace sessions is completely normal: + +![DSpace sessions](/cgspace-notes/2021/04/jmx_dspace_sessions-week.png) + +- While looking at the nginx logs I see that MEL is trying to log into CGSpace's REST API and delete items: ```console 34.209.213.122 - - [06/Apr/2021:03:50:46 +0200] "POST /rest/login HTTP/1.1" 401 727 "-" "MEL" @@ -308,6 +317,7 @@ $ psql -c 'SELECT * FROM pg_locks pl LEFT JOIN pg_stat_activity psa ON pl.pid = ``` - I see a few of these per day going back several months + - I sent a message to Salem and Enrico to ask if they know - Also annoying, I see tons of what look like penetration testing requests from Qualys: ```console diff --git a/docs/2021-04/index.html b/docs/2021-04/index.html index 2018311c2..db55c3bde 100644 --- a/docs/2021-04/index.html +++ b/docs/2021-04/index.html @@ -24,7 +24,7 @@ Perhaps one of the containers crashed, I should have looked closer but I was in - + @@ -54,9 +54,9 @@ Perhaps one of the containers crashed, I should have looked closer but I was in "@type": "BlogPosting", "headline": "April, 2021", "url": "https://alanorth.github.io/cgspace-notes/2021-04/", - "wordCount": "1789", + "wordCount": "1824", "datePublished": "2021-04-01T09:50:54+03:00", - "dateModified": "2021-04-05T19:36:44+03:00", + "dateModified": "2021-04-06T22:33:43+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -428,13 +428,26 @@ $ psql -c 'SELECT * FROM pg_locks pl LEFT JOIN pg_stat_activity psa ON pl.pid = $ psql -c 'SELECT * FROM pg_locks pl LEFT JOIN pg_stat_activity psa ON pl.pid = psa.pid;' | wc -l 4582
+ +
+34.209.213.122 - - [06/Apr/2021:03:50:46 +0200] "POST /rest/login HTTP/1.1" 401 727 "-" "MEL"
34.209.213.122 - - [06/Apr/2021:03:50:48 +0200] "DELETE /rest/items/95f52bf1-f082-4e10-ad57-268a76ca18ec/metadata HTTP/1.1" 401 704 "-" "-"
2021-04-04 06:35:17,889 INFO org.dspace.authenticate.LDAPAuthentication @ anonymous:session_id=FF1E051BCA7D81CC5A807D85380D81E5:ip_addr=64.39.108.48:failed_login:no DN found for user "'><qss a=X158062356Y1_2Z>
diff --git a/docs/categories/index.html b/docs/categories/index.html
index 76e7604f9..cc3078d90 100644
--- a/docs/categories/index.html
+++ b/docs/categories/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html
index 2af5b64d9..4c34a361d 100644
--- a/docs/categories/notes/index.html
+++ b/docs/categories/notes/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html
index a0a69532b..71a7c7f6f 100644
--- a/docs/categories/notes/page/2/index.html
+++ b/docs/categories/notes/page/2/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html
index cf3025562..402356e41 100644
--- a/docs/categories/notes/page/3/index.html
+++ b/docs/categories/notes/page/3/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html
index 3e409d3b2..1f2c46569 100644
--- a/docs/categories/notes/page/4/index.html
+++ b/docs/categories/notes/page/4/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/categories/notes/page/5/index.html b/docs/categories/notes/page/5/index.html
index f168a0cd1..edbfad51e 100644
--- a/docs/categories/notes/page/5/index.html
+++ b/docs/categories/notes/page/5/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/index.html b/docs/index.html
index 7d5ee09ae..5c8f2fe9a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/2/index.html b/docs/page/2/index.html
index 9ffea1160..801a91c68 100644
--- a/docs/page/2/index.html
+++ b/docs/page/2/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/3/index.html b/docs/page/3/index.html
index 829216560..e1a1179d1 100644
--- a/docs/page/3/index.html
+++ b/docs/page/3/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/4/index.html b/docs/page/4/index.html
index 4d1a3548f..1bb5fb341 100644
--- a/docs/page/4/index.html
+++ b/docs/page/4/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/5/index.html b/docs/page/5/index.html
index b21941edc..73b645ab8 100644
--- a/docs/page/5/index.html
+++ b/docs/page/5/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/6/index.html b/docs/page/6/index.html
index 29f037222..1c89e2df5 100644
--- a/docs/page/6/index.html
+++ b/docs/page/6/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/page/7/index.html b/docs/page/7/index.html
index 3b5e332cf..16f8749f1 100644
--- a/docs/page/7/index.html
+++ b/docs/page/7/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/index.html b/docs/posts/index.html
index 7a221d317..b9f095752 100644
--- a/docs/posts/index.html
+++ b/docs/posts/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html
index 13002c5c2..3fe60442a 100644
--- a/docs/posts/page/2/index.html
+++ b/docs/posts/page/2/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html
index 3d3898e7c..61cc78273 100644
--- a/docs/posts/page/3/index.html
+++ b/docs/posts/page/3/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html
index 53798ca46..24de3ff18 100644
--- a/docs/posts/page/4/index.html
+++ b/docs/posts/page/4/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html
index f2ff4d818..7f6d5284c 100644
--- a/docs/posts/page/5/index.html
+++ b/docs/posts/page/5/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html
index 94837097f..3a70024cc 100644
--- a/docs/posts/page/6/index.html
+++ b/docs/posts/page/6/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/posts/page/7/index.html b/docs/posts/page/7/index.html
index 1b3d18ca1..23495a9e0 100644
--- a/docs/posts/page/7/index.html
+++ b/docs/posts/page/7/index.html
@@ -10,7 +10,7 @@
-
+
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index fa30257cf..dc537c292 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -3,19 +3,19 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
https://alanorth.github.io/cgspace-notes/2021-04/
- 2021-04-05T19:36:44+03:00
+ 2021-04-06T22:33:43+03:00
https://alanorth.github.io/cgspace-notes/categories/
- 2021-04-05T19:36:44+03:00
+ 2021-04-06T22:33:43+03:00
https://alanorth.github.io/cgspace-notes/
- 2021-04-05T19:36:44+03:00
+ 2021-04-06T22:33:43+03:00
https://alanorth.github.io/cgspace-notes/categories/notes/
- 2021-04-05T19:36:44+03:00
+ 2021-04-06T22:33:43+03:00
https://alanorth.github.io/cgspace-notes/posts/
- 2021-04-05T19:36:44+03:00
+ 2021-04-06T22:33:43+03:00
https://alanorth.github.io/cgspace-notes/2021-03/
2021-04-05T19:36:44+03:00
diff --git a/static/2021/04/jmx_dspace_sessions-week.png b/static/2021/04/jmx_dspace_sessions-week.png
new file mode 100644
index 000000000..af73363b0
Binary files /dev/null and b/static/2021/04/jmx_dspace_sessions-week.png differ
diff --git a/static/2021/04/jmx_tomcat_dbpools-week.png b/static/2021/04/jmx_tomcat_dbpools-week.png
new file mode 100644
index 000000000..55765a3a0
Binary files /dev/null and b/static/2021/04/jmx_tomcat_dbpools-week.png differ
diff --git a/static/2021/04/postgres_connections_cgspace-week.png b/static/2021/04/postgres_connections_cgspace-week.png
new file mode 100644
index 000000000..8bfabf413
Binary files /dev/null and b/static/2021/04/postgres_connections_cgspace-week.png differ
diff --git a/static/2021/04/postgres_locks_cgspace-week.png b/static/2021/04/postgres_locks_cgspace-week.png
new file mode 100644
index 000000000..5e22431b9
Binary files /dev/null and b/static/2021/04/postgres_locks_cgspace-week.png differ