SUSE Support

Here When You Need Us

ClamAV/clamsap allocates 1GB of anon memory segment for each SAP worker process

This document (000019908) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server for SAP Applications 12

Situation

The system is facing high memory usage as clamAV/clamsap allocates 1GB of anonymous memory segment for each SAP worker process, which can lead to an Out Of Memory situation.

The "pmap -XX" output shows 1GB of anonymous segments for each dw.sap task mapped at 0x7f6d91e83000:
23733:   dw.sapRDX_D00 pf=/usr/sap/RDX/SYS/profile/RDX_D00_sapnode1
         Address Perm   Offset Device     Inode     Size Private_Dirty Referenced Anonymous   
    56406d94a000 r-xp 00000000  fe:01 134310103    67820             0      29024         0   
    564077378000 rw-p 00000000  00:00         0     6076          1316       1304      1372   
    564077967000 rw-p 00000000  00:00         0    17672         13700      13700     13700   
    7f6d91e83000 rw-p 00000000  00:00         0  1057904       1032992    1032992   1032992 

 32145:   dw.sapRDX_D00 pf=/usr/sap/RDX/SYS/profile/RDX_D00_sapnode1
         Address Perm   Offset Device     Inode     Size  Private_Dirty Referenced Anonymous
    56406d94a000 r-xp 00000000  fe:01 134310103    67820              0      40412         0
    564071d84000 r--p 0423a000  fe:01 134310103     1604              0        520       524
    564077967000 rw-p 00000000  00:00         0    32784          25272      25272     25272
    7f6d91e43000 rw-p 00000000  00:00         0      132            132        132       132
    7f6d91e83000 rw-p 00000000  00:00         0  1057904        1018240    1018240   1018240
...

 

Resolution

This issue is fixed by using the multithreaded version of libclamsap library, libclamdsap.so instead of libclamsap.so, as "Adapter Path". 
This is documented here:
https://documentation.suse.com/sles-sap/15-SP4/single-html/SLES-SAP-guide/#sec-clamsap-library

Status

Reported to Engineering

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019908
  • Creation Date: 21-Dec-2022
  • Modified Date:22-Dec-2022
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.