mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #9] Logs flooded with RunValueLogGC() messages #7
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pinoceniccola on GitHub (Aug 22, 2022).
Original GitHub issue: https://github.com/axllent/mailpit/issues/9
Hello,
I'm running Mailpit in Ubuntu 20.04.4 and log get flooded every few minutes with this message:
which I think is related to CloverDB/BadgerDB. Here's a screenshot:
I also tried to run Mailpit with in-memory storage, but still log get flooded again with another message:
This is my Mailpit service running:
Lastly, just to note that the Mailpit process is constantly consuming 2.5~3.5% CPU, which is quite high compared to the Mailhog instance it replaced.
mailpit 0.1.5 compiled with go1.19 on arm64.
(Nevertheless, Mailpit still brings a much better experience than Mailhog, thank you for your work!)
@axllent commented on GitHub (Aug 23, 2022):
Hi @pinoceniccola - firstly thanks for the feedback and kind words. The repeated "error" message you are seeing is coming from CloverDB when it runs a periodic 5-minute schedule to "prune" deleted items where possible from the database (passed through to BadgerDB). The maintainer of CloverDB (@ostafen) had indicated he was going to introduce a way to "capture" those error logs (rather than just printing them to stdout, which is what you are seeing) on https://github.com/ostafen/clover/issues/94#issuecomment-1208009030 - but I don't believe he's done that yet. It is harmless so you can ignore it, despite it maybe being a bit annoying.
I am a bit surprised by the constant 2-3% CPU usage though, as, unless it is actively receiving emails at the time, or doing one of those GC cleanups, I can't see any reason why it would be using any CPU at all. The thing is that (now that you mention it) I get that CPU usage here too. I will need to investigate to try and locate the source of the CPU usage and report back.
@axllent commented on GitHub (Aug 23, 2022):
Re: the CPU usage, I am fairly sure this is coming from CloverDB (specifically the v2 alpha branch which Mailpit uses), and I have reported it on https://github.com/ostafen/clover/issues/97 for feedback.
@axllent commented on GitHub (Aug 30, 2022):
@pinoceniccola I have just released a beta version containing a major change (switch to SQLite). This should address both the reclaiming of storage (no errors in the log) as well as the constant CPU drain. I documented the full reasons in #10.
Please note that
--datahas been deprecated and replaced with--db-file, which should provide the path to a database file rather than a directory, eg :ExecStart=/home/pi/go/bin/mailpit --db-file /home/pi/mailbox/mailpit.db --max 150.Please let me know if this solves your issues?
@pinoceniccola commented on GitHub (Aug 30, 2022):
HI @axllent I switched today to the new beta and I'm impressed at the very noticeable new low footprint for both cpu and memory usage! UX is smooth and slick as it was before the transition.
Great work!
@axllent commented on GitHub (Aug 30, 2022):
@pinoceniccola Awesome, thanks for the testing & feedback! I'll consider this resolved then 👍