Micro Focus Expert
Micro Focus Expert
249 views

(UCMDB) Support Tip – Host Connection by SNMP fails with maximum number of Datagram sockets reached

Error Message

 Host Connection By SNMP job is failing with below error:

 <message>[CDATA: maximum number of DatagramSockets reached]</message>

Such error is coming out of the limiation with the JVM.

  

Cause

The error message is reporting that the probe Java virtual machine (JVM) has used all available datagram sockets.  Process is running out of UD Datagram sockets and hence one see this error.

It usually happens when Host Connection By SNMP runs against large number of trigger CIs and got into hung state and sockets don't get released.

As a result, it is suggested to increase the limitation and restart the JVM related to probe.

 

Workaround / Fix

Increase the UDP socket limitation for the JVM.

As follow are the changes which can be implement and rerun the job.

#1, Add the following line to WrapperManagerCustom.conf and WrapperGateway.conf configuration files on the probe. wrapper.java.additional.24=-Dsun.net.maxDatagramSockets=90

At the same time, it is advisable to increase the below setting also along with the above setting.

#2, In the DataFlowProbe.properties file on the discovery probe, change values as follows: appilog.agent.local.services.defaultMaxJobThreads = 90 appilog.agent.local.services.adHocMaxThreads = 45

OR

change only for the specific adapter like Host Conection by SNMP like below.

 #3, In the “Host Connection by IP” and “Host Connection by SNMP” discovery patterns change the number of threads to 45.

This is applicable to all the versions of UD.

 

Reference: https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM02948690

 

 

MICRO FOCUS Software Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please hit the Kudo botton, if you find this post useful.
Labels (1)
Tags (1)
0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.