/srv/irclogs.ubuntu.com/2021/12/12/#ubuntu-server.txt

=== gschanuel211 is now known as gschanuel21
FESTIVUS-MAXIMUShow do I find out why my ram usage is growing and not stop growing, even if I kill stuff it does not make a dent15:58
FESTIVUS-MAXIMUSbecause my server when I reboot just keeps using ram and not stopping until it is full, then I have to restart it 16:25
FESTIVUS-MAXIMUSthen it starts the entire thing over again16:25
ravageFESTIVUS-MAXIMUS: https://www.linuxatemyram.com/16:26
FESTIVUS-MAXIMUSon my server screen it was giving me killing messages16:27
FESTIVUS-MAXIMUSbecause it was out of ram 16:27
FESTIVUS-MAXIMUSI have been watching htop and nothing is using that much ram16:27
ravagethen you have an application that behaves badly. it will show up in a monitoring tool16:27
ravageit usually also kills the application that uses the most ram first16:28
ravageso that can be a pointer16:28
FESTIVUS-MAXIMUShtop did not show it16:28
masonFESTIVUS-MAXIMUS: Run top(1), press f, move to RES, press s, press q16:37
masonNow top(1) is displaying processes ordered by how much actual RAM they're consuming. Should give you some idea what's going on.16:38
masonRight-arrow if you can't see whole process names.16:38
FESTIVUS-MAXIMUSram is still growing and nothing is changing16:38
FESTIVUS-MAXIMUS 397 root      19  -1   84356  28740  27612 S   0.0   0.4   0:00.63 systemd-journal  16:38
FESTIVUS-MAXIMUSI am at 1 GB of ram16:38
masonFESTIVUS-MAXIMUS: Alright, something is logging if that's the biggest consumer.16:40
FESTIVUS-MAXIMUSit is now    5745 mysql     20   0 2061040 390444  36120 S   0.3   4.9   0:00.84 mysqld16:40
masonOh, doesn't seem like you've sorted by resident usage then.16:41
FESTIVUS-MAXIMUSI did what you said16:41
FESTIVUS-MAXIMUSf goto RES s q16:41
masonkk, top entries should be the biggest RAM consumers16:44
FESTIVUS-MAXIMUStop one is  5745 mysql     20   0 2062072 403908  36484 S   0.0   5.0   0:01.13 mysqld  16:44
masonIt's possible there is an explosion of smaller things eating RAM too, but top is a good place to start16:45
FESTIVUS-MAXIMUSI have tried restarting mysql, and it does not stop the ram16:45
FESTIVUS-MAXIMUS*drop16:45
masonNext stop might be understanding what it's doing that's problematic, and you might look at things talking to it to start (sudo netstat -nap maybe) and see if there's some logging to note activity, maybe as compared with another box doing the same thing but not running out of RAM16:47
FESTIVUS-MAXIMUSok16:48
masonIn short, is it being used normally or is there something funny going on? What's it doing? Has it simply exceeded its design expectations in some way?16:48
masonIf you have a DBA they might be able to help with this, or maybe someone involved with developing whatever the database is doing.16:48
FESTIVUS-MAXIMUSok16:48
FESTIVUS-MAXIMUSthank you for your help mason16:50
masonFESTIVUS-MAXIMUS: Such as it was. Sorry I don't have more detailed ideas. I can use databases but I'm no DBA, so there might be easy things to check that I don't know about. But look at who's using it and how it's being used and you should be headed in the right direction.16:51
FESTIVUS-MAXIMUSok16:51
tomreynFESTIVUS-MAXIMUS: if you look over the past OOM records in the systemd journal, which are those processes which got killed?17:27
tomreynmake a list, see which ones got killed first (after rebooting), and which ones got killed the most17:28
FESTIVUS-MAXIMUSok17:28
tomreynalso, is this a container, a VM, or a dedicated server? if a container, RAM might be 'stolen' by the host, too17:29
tomreyni.e. they could overcommit and if you have noisy neighbour that might cause you problems17:30
tomreynif you don't kow exactly what this environment is, you can install package    virt-what    and run the    virt-what   command and it will try to tell which environment you're operating in.17:32
tomreynactually, ram might also be taken from your system if you're on a VM. you'd see messages in systemd-journald about "balloon" then (the technique is called ballooning)17:38
FESTIVUS-MAXIMUSdecaded server17:51
FESTIVUS-MAXIMUSand I found the issue17:51
FESTIVUS-MAXIMUSsomeone is trying to brute force there way into my smtp server17:51
tomreynFESTIVUS-MAXIMUS: that's entirely normal as a situation, but should not cause high ram allocation, unless there's a misconfiguration18:18
FESTIVUS-MAXIMUSI am looking in to the config 18:19

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!