Staartvin / Autorank-2

Autorank is a Spigot/Bukkit plugin for automatically ranking players based on requirements
Other
56 stars 62 forks source link

Autorank producing huge log files #793

Open bclemmey opened 3 years ago

bclemmey commented 3 years ago

I was clearing out files from the old instance after upgrading a server and I noticed after deleting the worlds the plugins folder was still 7GB. Scanned through and it seems it is Autorank/logging that fills up.

Just checked on the instance currently in use and there are 38.47GB of log files from the last two weeks of running. The current file began two days ago and is over 8GB in size, and getting bigger! Running tail on the file shows it is repeatedly logging the same thing thousands and thousands of times a second:

[09:47:40.895650383]: Fetched fresh (MySQL) TOTAL_TIME of 9c8321dc-5a0a-4b7c-b4d1-6db12f9034f0: 2080 minutes [09:47:40.896168069]: Fetched fresh (MySQL) TOTAL_TIME of 1c4899e1-089c-48dc-a8aa-232ab3bb93e3: 205 minutes [09:47:40.896725185]: Fetched fresh (MySQL) TOTAL_TIME of 68558f1f-8f9c-42d7-aa0d-c2cc9f6eb39f: 34 minutes [09:47:40.897413437]: Fetched fresh (MySQL) TOTAL_TIME of 55e589c5-a06e-4cdc-8066-c283c5dcd998: 809 minutes [09:47:40.897781416]: Fetched fresh (MySQL) TOTAL_TIME of 99c5ce67-1bac-4175-88a2-c9d95258706d: 19 minutes [09:47:40.898199051]: Fetched fresh (MySQL) TOTAL_TIME of 23890c8f-91c3-4815-b4bc-ad8f9a8f1b54: 390 minutes [09:47:40.898626073]: Fetched fresh (MySQL) TOTAL_TIME of a27a1221-838f-47b2-ab35-9e80d4fffb14: 405 minutes [09:47:40.899118203]: Fetched fresh (MySQL) TOTAL_TIME of 03b80e21-9e86-44a8-9bf8-562401167544: 720 minutes [09:47:40.8995502]: Fetched fresh (MySQL) TOTAL_TIME of ff529387-9c38-4335-93ad-344f5b152114: 20 minutes [09:47:40.90010833]: Fetched fresh (MySQL) TOTAL_TIME of 720f1d4c-8855-426b-b574-b27746488a0a: 105 minutes [09:47:40.900866156]: Fetched fresh (MySQL) TOTAL_TIME of 31ca16a6-4208-45ec-b75b-7cf61c13990b: 15 minutes [09:47:40.901352333]: Fetched fresh (MySQL) TOTAL_TIME of 80bf98e5-fe72-4edc-823d-d07eb004248d: 895 minutes [09:47:40.901870186]: Fetched fresh (MySQL) TOTAL_TIME of c983dece-b207-4cde-b6bb-90a247bce60f: 940 minutes

I have now turned off logging so I think that's stopped the files, but I would guess this is not intended behaviour.

bclemmey commented 3 years ago

Running 4.5.1 I should add.

Looks like it's repeatedly grabbing time from the database, really quickly?

UsernameIsInUse commented 2 years ago

Issue identified here: https://github.com/Staartvin/Autorank-2/issues/798