Users on older version of VCF on 4.4.1.x, experiencing Out of Memory errors , can add the logger configuration to remove debug loglevel for this specific class, and instead use just INFO log level if they see OOM errors (over utilized heap).
As part of periodic NSX Audit , and subsequent NSX Inventory Sync, the NsxtInventoryLoader logs the NSXInventory JSON to lcm-debug.log, and as part of logging, it happens to consume/hog enormous amount of heap memory.
Currently there is no resolution to the issue. This will be fixed in the future releases.
To workaround the issue, please follow the below mentioned steps:
su - root
// enter the password
cd /opt/vmware/vcf/lcm/lcm-app/conf
vi logback-prod.xml
// Add the below line to the end of file:
<logger name="com.vmware.evo.sddc.lcm.primitive.impl.nsxt.NsxtInventoryLoader" level="INFO" additivity="false">
<appender-ref ref="LCM" />
</logger>
systemctl restart LCM
Note: If the logging configuration is removed for support log collection, it must be added back immediately after that. Otherwise, there is a risk that LCM memory usage will be too high, and in scale environments could lead to OOM.