SRM: L'attività import-properties presenta i seguenti errori: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Errore del collegamento di comunicazione

Summary: Il socketTimeout può essere aumentato se l'attività import-porperties continua a non riuscire nei timeout del socket a causa di database apg molto carichi.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

L'attività delle proprietà di importazione presenta i seguenti errori sulla connettività ai database apg:
160627 07:07:57 : com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
160627 07:07:57 :
160627 07:07:57 : The last packet successfully received from the server was 180,025 milliseconds ago. The last packet sent successfully to the server was 180,025 milliseconds ago.

La causa dell'eccezione è:
aused by: java.net.SocketTimeoutException: Timeout lettura

In questo caso, il socketTimeout impostato per ogni database in APG/Web-Servers/Tomcat/Default/conf/server.xml è stato impostato su 180000 millisecondi.

Cause

SocketTimeout verrà utilizzato nell'attività import-properties per attendere il pull dei dati dalla tabella data_property. Se questo tempo viene superato a causa di un database sovraccaricato in quel momento, l'attività avrà esito negativo.

Resolution

È possibile aumentare l'impostazione socketTimeout nel file APG/Web-Servers/Tomcat/Default/conf/server.xml ad esempio a 5 minuti (300000 millisecondi) come indicato di seguito:
<!-- Defines the connection to the APG timeseries database for MySQL. -->
	<Resource name="jdbc/APG-DB" auth="Container" type="javax.sql.DataSource" maxActive="20" maxIdle="20" validationQuery="SELECT 1" testOnBorrow="false" testWhileIdle="true" validationQueryTimeout="5" timeBetweenEvictionRunsMillis="10000" minEvictableIdleTimeMillis="60000" maxWait="30000" username="apg" password="watch4net" driverClassName="com.mysql.jdbc.Driver" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" url="jdbc:mysql://<db hostname>:53306/apg?autoReconnect=true&socketTimeout=300000"/>
 

Affected Products

SRM
Article Properties
Article Number: 000059197
Article Type: Solution
Last Modified: 29 Jul 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.