Although users can simply restart the LCM service by the following command to enforce JVM to do garbage collection, it would be better if we can prevent this issue from happening.
Restart LCM service
systemctl restart lcm
Therefore, Inventory Sync Service has exposed the following property to let the user set the inventory sync interval. By default, the interval is 300000 milliseconds (5 minutes). Please be aware of the consequence of this increment - the inventory cache may be stale. Thus, it is recommended to just slightly increase it.
Here is an example to set the interval to 360000 milliseconds (6 minutes), it will reduce the consumption of system resources of LCM to a considerable extent in a scaled setup.
su
echo "lcm.inventory.sync.interval= 360000 " >> /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties
systemctl restart lcm
grep "Starting logical inventory sync" /var/log/vmware/vcf/lcm/lcm-debug.log