vCloud Usage Meter 4.7.x and 4.8.x
Due to the current nature of the journal logs and Notifications UI page, in case there is a large number of journal log messages (more than 500k), spontaneous OOM exceptions can occur.
In this case consider decreasing the retention policy of the journal messages from 3 years (by default) to 6 months.
1. Login in vCloud Usage Meter Appliance Console (via SSH or using remote console) as usagemeter
2. Backup /opt/vmware/cloudusagemetering/platform/bin/start-journal-service.sh file
3. Add
export
JAVA_OPTS=
"${JAVA_OPTS} -Djournal-service.cleanup.retention-period=P6M"
line inside /opt/vmware/cloudusagemetering/platform/bin/start-journal-service.sh after the last export line
export
JAVA_OPTS=
"${JAVA_OPTS} -D..."
4. Reboot the appliance either using vCenter or using the command below
sudo
reboot