Hellow,
I have installed ClamAV on a container (runs on alpine). Also I have a web service running in the same container which is used to expose scanning to outside. I am using clam demon to do the scanning. (via TCP socket)

When I run this setup it takes memory usage upto 1.5GB. if I only ran the webservice (i.e. not initializing clam demon) it only takes about 350MB of RAM.

So my question is without disabling clam demon, is there a way to reduce the memory footprint?

Any help regarding this would be highly appreciated.

Thank you,
Best regards,
Kosala