Gvmd Syncing SCAP consuming 100% cpu and in never ending loop

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

Please try the release branches instead of the releases. This should be fixed already.

2 Likes

Sorry I should have mentioned that, this is what I installed from:

wget -O gvm-libs-11.0.0.tar.gz  https://github.com/greenbone/gvm-libs/archive/v11.0.0.tar.gz
wget -O openvas-7.0.0.tar.gz https://github.com/greenbone/openvas/archive/v7.0.0.tar.gz
wget -O gvmd-9.0.0.tar.gz https://github.com/greenbone/gvmd/archive/v9.0.0.tar.gz
wget -O openvas-smb-1.0.5.tar.gz https://github.com/greenbone/openvas-smb/archive/v1.0.5.tar.gz
wget -O gsa-9.0.0.tar.gz https://github.com/greenbone/gsa/archive/v9.0.0.tar.gz
wget -O ospd-openvas-1.0.0.tar.gz https://github.com/greenbone/ospd-openvas/archive/v1.0.0.tar.gz
wget -O ospd-2.0.0.tar.gz https://github.com/greenbone/ospd/archive/v2.0.0.tar.gz

So the branches is what I used.

No you used the tags. I am talking about e.g. https://github.com/greenbone/gvmd/tree/gvmd-9.0
See GVM 11 (stable, initial release 2019-10-14) for the list of GVM 11 branches (under Source Code Repository).

2 Likes

Thanks mate, after installing gvm-libs and gvmd from branches as suggested and running gvmd --migrate all looks good now.

And big thanks to everyone involved with the project for this great piece of software.

3 Likes