apm_bridge Unhandled exception occurred. Stopping probe java.lang.OutOfMemoryError: GC overhead limit exceeded
search cancel

apm_bridge Unhandled exception occurred. Stopping probe java.lang.OutOfMemoryError: GC overhead limit exceeded

book

Article ID: 271006

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Jul 24 17:05:13:086 FATAL [ForkJoinPool-1-worker-1, apm_bridge] Unhandled exception occurred. Stopping probe
java.lang.OutOfMemoryError: GC overhead limit exceeded
    at com.fasterxml.jackson.core.JsonFactory._createContext(JsonFactory.java:1981)
    at com.fasterxml.jackson.core.JsonFactory.createGenerator(JsonFactory.java:1349)
    at com.fasterxml.jackson.databind.ObjectWriter.createGenerator(ObjectWriter.java:751)
    at com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:1140)
    at com.fasterxml.jackson.databind.node.InternalNodeMapper.nodeToString(InternalNodeMapper.java:34)
    at com.fasterxml.jackson.databind.node.BaseJsonNode.toString(BaseJsonNode.java:238)
    at com.uim.probe.bridge.apm.inventory.APMInventoryService.lambda$harvestAllUimDevices$21(APMInventoryService.java:1079)
    at com.uim.probe.bridge.apm.inventory.APMInventoryService$$Lambda$41/1111600829.apply(Unknown Source)
    at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
    at java.util.stream.Collectors$$Lambda$45/768852503.accept(Unknown Source)
    at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
    at com.uim.probe.bridge.apm.inventory.APMInventoryService.harvestAllUimDevices(APMInventoryService.java:1079)
    at com.uim.probe.bridge.apm.inventory.APMInventoryService.inventoryProcessWithoutCsFilter(APMInventoryService.java:384)
    at com.uim.probe.bridge.apm.inventory.APMInventoryService.lambda$runOneIteration$0(APMInventoryService.java:205)
    at com.uim.probe.bridge.apm.inventory.APMInventoryService$$Lambda$14/989152146.run(Unknown Source)
    at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)

Environment

Release: 20.4
Component: apm_bridge 

Resolution

- update the probes .cfg file with the following change in the startup section:

<startup>
   options = -Xms512m -Xmx2g -Dfile.encoding=UTF-8
</startup>

- deactivate/activate the probe