VMWare probe keeps restarting with error 'java.lang.OutOfMemoryError: Java heap space'
search cancel

VMWare probe keeps restarting with error 'java.lang.OutOfMemoryError: Java heap space'

book

Article ID: 241825

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

We have configured the VMWare probe with a profile created pointing to our vcenter. Looks like the probe keep's restarting with some java memory exception/errors in the logs.

 

Environment

Release : 20.3

Component : UIM - VMWARE

Cause

Based on the Vmware.log I can see the below error 

May 16 12:15:22:171 [Data Collector - <xxx.xxx.xxx>, vmware] Data collection failed. Shutting Down the probe.
May 16 12:15:22:171 [Data Collector - <xxx.xxx.xxx>, vmware] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:192)
 at com.nimsoft.vm.collector.DataCollectorPoolExecutor.afterExecute(DataCollectorPoolExecutor.java:33)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: Java heap space

May 16 12:15:25:009 [main, vmware] ****************[ Stopped ]****************

Resolution

Please increase the heap space setting for the probe in the Raw Configure window for the probe.


Follow these steps:

  1. Shift + right-click on the probe in Infrastructure Manager.
  2. Choose Raw Configure from the menu.
  3. Click startup in the left pane.
  4. Select the options key and open it for editing.
  5. Enter a value similar to the following:
    -Xms256m  - Xmx<nnnn>m where <nnnn> is heap space up to 2048 MB or greater.For example, to increase the heap space to 4,096 MB, enter the following:-Xms256m  - Xmx4,096m
    Ensure the machine where the robot and probe are deployed has enough RAM.
  6. Click OK and Apply.

Additional Information

VMware probe Known Issues and Work-arounds