Why does systemctl show high memory usage when top and htop show much less?

0

I'm running an apache2.4 web server, and noticed that when I run systemctl status apache2 or run service apache2 status, it says it is using 4.2GiB of RAM, which isn't a problem for the amount of RAM I have, but I am confused, since top and htop both show only 500MiB of RAM being used, much less that systemctl reports apache2 using alone. Why might this be, and which is right?

OS Info, if needed:

OS: Kali GNU/Linux Rolling x86_64
Kernel: 4.19.0-kali3-amd64

Rocketman173

Posted 2019-04-29T19:02:08.753

Reputation: 71

No answers