Hi,
I have GVM built from source running on a VM in AWS. What I notice is a constant process of gvmd: Syncing SCAP
that peggs a cpu core to 100% and consuming more and more memory over time:
top - 02:13:13 up 20:09, 2 users, load average: 1.06, 1.11, 2.22
Threads: 161 total, 2 running, 159 sleeping, 0 stopped, 0 zombie
%Cpu0 : 0.0 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
%Cpu1 : 99.7 us, 0.3 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 1949.9 total, 101.1 free, 1454.7 used, 394.1 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 203.4 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
46745 gvm 20 0 945616 853080 3332 R 99.7 42.7 26:41.06 gvmd: Syncing SCAP
When I strace the process all I can see is endless loop of brk()
system call:
01:25:36 brk(0x55f013423000) = 0x55f013423000 <0.000033>
01:25:37 brk(0x55f013280000) = 0x55f013280000 <0.000151>
01:25:37 brk(0x55f013352000) = 0x55f013352000 <0.000042>
01:25:37 brk(0x55f013423000) = 0x55f013423000 <0.000033>
Why is this happening when if I run greenbone-scapdata-sync
manually it finishes in seconds?
GVM versions
gsa: gsa-9.0.0
gvm: gvmd-9.0.0
openvas-scanner: openvas-7.0.0
gvm-libs: gvm-libs-11.0.0
Environment
Operating system: Ubuntu 20.04 LTS
Kernel: 5.4.0-1009-aws
Installation method / source: source