# top -atSzo res -s 3last pid: 33864; load averages: 0.62, 0.63, 0.57 up 13+21:28:35 10:44:3486 processes: 1 running, 84 sleeping, 1 waitingCPU: 8.5% user, 0.0% nice, 8.3% system, 0.0% interrupt, 83.2% idleMem: 1696M Active, 3179M Inact, 2317M Laundry, 8014M Wired, 176K Buf, 491M FreeARC: 526M Total, 233M MFU, 243M MRU, 6040K Anon, 7334K Header, 37M Other 422M Compressed, 2114M Uncompressed, 5.01:1 RatioSwap: 8192M Total, 2557M Used, 5635M Free, 31% Inuse PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND31143 root 13 20 -20 10G 9033M nanslp 2 716:03 5.88% eastpect: Eastpect Instance 1 (eastpect)21223 elasticsea 63 52 0 7052M 1982M uwait 3 473:38 1.34% /usr/local/openjdk8/bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+Always30149 root 13 20 -20 4455M 173M nanslp 1 216:19 4.65% eastpect: Eastpect Instance 0 (eastpect)60818 root 2 20 -20 396M 126M nanslp 2 9:22 0.13% /usr/local/zenarmor//bin/eastpect -D33027 root 1 52 -20 396M 126M wait 0 0:00 0.00% eastpect: Eastpect Streamer Instance (eastpect)50178 root 1 20 0 102M 51M nanslp 2 152:20 0.80% /usr/local/bin/php /usr/local/opnsense/scripts/routes/gateway_watcher.php interface routes alarm 1137 root 1 20 0 81M 47M accept 3 0:01 1.15% /usr/local/bin/php-cgi69064 root 1 52 0 81M 46M accept 2 0:02 1.74% /usr/local/bin/php-cgi20343 root 1 21 0 81M 46M accept 3 0:01 2.69% /usr/local/bin/php-cgi47394 root 1 20 0 81M 46M accept 0 0:00 0.54% /usr/local/bin/php-cgi 20 root 1 52 0 81M 46M accept 3 0:01 0.00% /usr/local/bin/php-cgi14981 root 1 52 0 81M 46M accept 1 0:00 0.00% /usr/local/bin/php-cgi
Elasticsearch uses several GB of RAM. It's not Zenarmor itself which eats all that memory. You could switch to SQL or MongoDB.In my case Eastpect uses 4.4 GB and Java uses 6 GB. That's on OPNsense.On Debian Eastpect uses by an order of magnitude less memory than Java. Java uses 6.7 GB. The machine has almost 7 GB free memory (it has 16 GB in total). And it is still running two Docker apps and a Samba server. Oh, yes, it has zram swap, which, going by CPU usage, it's mostly not being actively used (top says it has 2.7 GB used memory out of 9.4 GB total memory). Kibana and Elasticsearch use a ridiculous amount of virtual memory (over 21 GB each).
Hi,In this top command output, it seems Zenarmor Engines instance 1 uses so much Ram. Please share the report and let's check it.
top -ao res