Question

systemd-journald: Memory useage keeps increasing. Is this a leak?

Posted January 25, 2020 211 views
Server OptimizationWordPressArch Linux

I moved my site from shared hosting to DO + ServerPilot and I love the speed. But now I would like to put 5 websites on this 2gb droplet.

However I noticed my 1 website was using a lot of memory. So I ran some commands and found my systemd-journald uses more and more memory by the hour until I restart it.

10pm last night my systemd-journald used 1% memory. Now not even 24 hours later its using 5.9%.
https://www.screencast.com/t/PlPryfaIGmF

I ran: journalctl –vacuum-time=1d

to decrease the filesize of the journal but that doesnt stop the memory problem. The only fix is restarting it.

Anyone else run into this issue?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @mike212916,

I doubt you can effectively control how much RAM journald is using. I would take a serious look at whats creating all of those logs.

What do you see happening in the journal if you browse it? You can check your current boot’s messages with journalctl -b and you can have journalctl follow and print new messages as they happen with journalctl -f.

There are a lot of possibilities so this would need to be investigated and providing you with a pinpoint answer is impossible.

Apart of the above commands however, you can try using journalctl -xe it will show you the last lines of the log.

Regards,
KDSys

Submit an Answer