Check_nwc_health and MEMPOOL_GLOBAL_SHARED on cisco

Hi,

We have issue with memory leaks or increasing due to this plugin.
We ask our Cisco TAC and his reponse was :

Cisco doesn’t recommend polling MEMPOOL_GLOBAL_SHARED as it causes CPU hog.

show memory detail
Heap Memory:
Free Memory:
Global Shared Pool: 13581696 bytes ( 0% )
Message Layer Pool: 2968784 bytes ( 0% )
System: 5008590685 bytes ( 70% )
Used Memory:
Global Shared Pool: 777192064 bytes ( 11% )
Reserved (Size of DMA Pool): 1073741824 bytes ( 15% )
Reserved for messaging: 1225520 bytes ( 0% )
MMAP usage: 50364416 bytes ( 1% )
System Overhead: 231694336 bytes ( 3% )
------------------------------------- ----------------
Total Memory: 7159359325 bytes ( 100% )

Warning: The information reported here is computationally expensive to
determine, and may result in CPU hogs and performance impact.

So Cisco suggest to monitor system memory not the MEMPOOL_GLOBAL_SHARED pool with our monitoring tools.
The behavior is described here: https://bst.cloudapps.cisco.com/bugsearch/bug/CSCuu11733/

image

I looked if this mempool can be avoid by option on the plugin but it seems not.
Do you guys have any solution in mind to help ? Maybe reducing the frequency 5-> 15mn?
Maybe Gerhard who develop it (and really thank to you :slight_smile: ) have a solution ?

Stay safe,

Julien