Collection error on Aria Operations for Networks in Usage Meter
search cancel

Collection error on Aria Operations for Networks in Usage Meter

book

Article ID: 377695

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

"Collection Error: API error" on Aria Operations for Networks endpoint.

Error in collection-vrni-error.log:
2024-09-09 19:10:45.997 ERROR --- [pool-5-thread-1] c.vmware.um.collector.CollectionHelper   : OutOfMemoryError collecting from server 2
java.lang.OutOfMemoryError: Java heap space
        at java.base/java.lang.StringUTF16.compress(Unknown Source)
        at java.base/java.lang.String.<init>(Unknown Source)
        at java.base/java.lang.String.<init>(Unknown Source)
        at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1014)
        at com.google.gson.stream.JsonReader.nextName(JsonReader.java:798)
        at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:783)
        at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:725)
        at com.google.gson.internal.bind.TypeAdapters$34$1.read(TypeAdapters.java:1007)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
        at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393)
        at com.google.gson.Gson.fromJson(Gson.java:1227)
        at com.google.gson.Gson.fromJson(Gson.java:1137)
        at com.google.gson.Gson.fromJson(Gson.java:1075)
        at com.vmware.um.collector.http.RequestBuilder.as(RequestBuilder.java:258)
        at com.vmware.um.vrnicollector.api.VRNIClient.postPublic(VRNIClient.java:245)
        at com.vmware.um.vrnicollector.api.VRNIClient.postAllPublic(VRNIClient.java:211)
        at com.vmware.um.vrnicollector.VRNICollector.getEntityDetails(VRNICollector.java:383)
        at com.vmware.um.vrnicollector.VRNICollector.collect(VRNICollector.java:202)
        at com.vmware.um.vrnicollector.VRNICollector.collect(VRNICollector.java:94)
        at com.vmware.um.collector.CollectionHelper.collectFromServer(CollectionHelper.java:658)
        at com.vmware.um.collector.CollectionHelper.collectFromServersWithReporting(CollectionHelper.java:826)
        at com.vmware.um.collector.CollectionHelper.collectWithReporting(CollectionHelper.java:633)
        at com.vmware.um.collector.SynchronousCollectionExecutor.triggerCollection(SynchronousCollectionExecutor.java:40)
        at com.vmware.um.collector.AbstractCollectorComponent.handleCollectCommand(AbstractCollectorComponent.java:133)
        at com.vmware.um.collector.AbstractCollectorComponent.handleCommand(AbstractCollectorComponent.java:55)
        at com.vmware.um.collector.CollectorComponent.handleCommand(CollectorComponent.java:33)
        at com.vmware.um.collector.CollectionHelper.processCommand(CollectionHelper.java:915)
        at com.vmware.um.collector.AbstractCollector.processCommand(AbstractCollector.java:266)
        at com.vmware.um.umcomponent.CommandRunner$CommandExecutionWrapper.execute(CommandRunner.java:402)

Environment

Usage Meter 4.7
Usage Meter 4.8

Cause

Due to the presence of a large inventory, the Aria Operations for Networks collector is currently unable to handle the workload with the existing memory allocation of 1024MB.

Resolution

Follow the steps below to resolve the issue:

Note: Before applying the steps below, please ensure that the Usage Meter appliance has 12GB memory allocated in vCenter Server.

- Take a SNAPSHOT of the Usage Meter Appliance
- Login to SSH session using "usagemeter" account
- Edit the following file: 'vi /opt/vmware/cloudusagemetering/platform/conf/schedule-executions/command.yml'
- Update the value of the `extraJavaOpts` property for the Aria Operations for Networks collector, replacing `-Xmx1024M` with `-Xmx4096M`
- Reboot the appliance using 'reboot -f'