I have a number of ubuntu AWS EC2 instances solely running Event Store and regularly experience a scenario where the server becomes unresponsive and requires a reboot to recover.
On investigation I can see that Event Store’s memory use increases as time goes by to a point where there are no more memory resources available on the server.
An example is as follows, where Event Store has gone from using 41.9% of memory to 75.5% in 6 days.
Ubuntu 16.04.5 LTS running Event Store 4.1.1.0
Wed Jan 23 09:39:20
ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 1723 222 40 2004 1931
Swap: 0 0 0
ubuntu:~$ top
top - 09:40:00 up 1 day, 22:12, 1 user, load average: 0.00, 0.03, 0.00
Tasks: 121 total, 1 running, 120 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.2 us, 3.2 sy, 0.0 ni, 96.3 id, 0.2 wa, 0.0 hi, 0.0 si, 0.2 st
KiB Mem : 4045040 total, 227640 free, 1765168 used, 2052232 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 1977520 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1442 eventst+ 20 0 0.157t 1.616g 27104 S 7.7 41.9 168:36.98 Main
1209 root 20 0 19472 256 0 S 0.3 0.0 0:05.17 irqbalance
1 root 20 0 37696 5448 3712 S 0.0 0.1 0:36.00 systemd