SRM: Opgaven importegenskaber har følgende fejl: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Fejl i kommunikationsforbindelse

Summary: SocketTimeout kan øges, hvis import-porperties-opgaven bliver ved med at mislykkes på socket-timeouts på grund af tungt belastede apg-databaser.

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

Opgaven med importegenskaber har følgende fejl ved tilslutning til apg-databaser:
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.

Årsagen til undtagelsen er:
aused af: java.net.SocketTimeoutException: Læs timeout

SocketTimeout, som blev indstillet for hver database i APG/Web-Servers/Tomcat/Default/conf/server.xml, var i dette tilfælde indstillet til 180000 millisekunder.

Cause

socketTimeout bruges i opgaven importegenskaber til at vente på, at der hentes data fra data_property tabellen. Hvis denne tid overskrides på grund af en stærkt belastet database på det tidspunkt, mislykkes opgaven.

Resolution

Vi kan øge socketTimeout-indstillingen i filen APG/Web-Servers/Tomcat/Default/conf/server.xml til f.eks. 5 minutter (300000 millisekunder) som beskrevet nedenfor:
<!-- 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.