So I have that Strato vServer which is used for production (hosting a site infrastructure of a client). It's basically running SSHD, Nginx, MySQL, PHP and Fail2Ban (currently turned off to fix a few things).
Since the last weeks the RAM usage is getting quite weird. The whole software setup is using less memory than shown in used at free -m.
ps_mem.py
Private + Shared = RAM used Program
196.0 KiB + 116.5 KiB = 312.5 KiB dbus-daemon
352.0 KiB + 90.0 KiB = 442.0 KiB udevd
288.0 KiB + 222.5 KiB = 510.5 KiB init
212.0 KiB + 371.5 KiB = 583.5 KiB mysqld_safe
440.0 KiB + 375.5 KiB = 815.5 KiB bash
652.0 KiB + 191.0 KiB = 843.0 KiB crond
2.5 MiB + 182.5 KiB = 2.7 MiB php-fpm
2.2 MiB + 703.0 KiB = 2.9 MiB sshd (2)
1.4 MiB + 1.7 MiB = 3.1 MiB nginx (2)
7.8 MiB + 333.5 KiB = 8.2 MiB mysqld
---------------------------------
20.2 MiB
=================================
Free result:
total used free shared buffers cached
Mem: 2048 783 1264 0 0 126
-/+ buffers/cache: 656 1391
Swap: 0 0 0
Top:
top - 09:43:04 up 44 days, 2:11, 1 user, load average: 0.00, 0.00, 0.00
Tasks: 24 total, 1 running, 23 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.7%us, 0.4%sy, 0.0%ni, 98.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 2097152k total, 803108k used, 1294044k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 129844k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 20 0 2900 1132 940 S 0.0 0.1 0:00.09 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd/218414
3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper/2184143
4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
5 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
6 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
7 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rpciod/2184143/
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 nfsiod/2184143
147 root 16 -4 2464 624 296 S 0.0 0.0 0:00.01 udevd
491 dbus 20 0 3000 528 332 S 0.0 0.0 0:00.00 dbus-daemon
1041 root 20 0 7436 1176 580 S 0.0 0.1 0:08.84 crond
20932 root 20 0 12004 3360 2620 S 0.0 0.2 0:00.06 sshd
20934 root 20 0 6640 1716 1428 S 0.0 0.1 0:00.03 bash
20980 root 20 0 21964 1916 396 S 0.0 0.1 0:00.00 nginx
20981 nginx 20 0 22648 3352 1224 S 0.0 0.2 0:00.01 nginx
20997 root 20 0 33028 3088 968 S 0.0 0.1 0:00.02 php-fpm
21049 root 20 0 6528 1432 1224 S 0.0 0.1 0:00.03 mysqld_safe
21400 mysql 20 0 23952 9752 5516 S 0.0 0.5 0:00.16 mysqld
21450 root 20 0 2564 968 776 R 0.0 0.0 0:00.00 top
25046 root 20 0 8944 1032 524 S 0.0 0.0 0:00.00 sshd
I have been double checking things to make sure nothing else than those processes is running and everything was as expected. Only the software I installed was running and it's memory usage was way way way lower than you'd guess from the free result. No one else other than me and the client has access to the server. The client is just uploading files and from time to time testing his game servers he has written for his own games (currently he is not doing these activities though).
I don't have a clue about what the heck is going on. Not even the software that is running on the sites could use so much memory. Especially when the memory limit is 128 MB.
http://ift.tt/1dvHQ0Z
0 comments:
Post a Comment