SRM: Uppgiften import-properties har följande fel: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Fel på kommunikationslänk

Résumé: socketTimeout kan ökas om import-porperties-uppgiften fortsätter att misslyckas vid socket-timeouter på grund av kraftigt belastade apg-databaser.

Cet article concerne Cet article ne concerne pas Cet article n’est associé à aucun produit spécifique. Toutes les versions du produit ne sont pas identifiées dans cet article.

Symptômes

Uppgiften importera egenskaper har följande fel vid anslutning till 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.

Orsaken till undantaget är:
aused by: java.net.SocketTimeoutException: Tidsgränsen för läsning överskreds

socketTimeout som ställts in för varje databas i APG/Web-Servers/Tomcat/Default/conf/server.xml var i det här fallet satt till 180000 millisekunder.

Cause

socketTimeout används i import-properties uppgiften för att vänta på att data hämtas från den data_property tabellen. Om den här tiden överskrids på grund av en hårt belastad databas vid den tidpunkten misslyckas aktiviteten.

Résolution

Vi kan öka socketTimeout-inställningen i filen APG/Web-Servers/Tomcat/Default/conf/server.xml till t.ex. 5 minuter (300000 millisekunder) enligt nedan:
<!-- 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"/>
 

Produits concernés

SRM
Propriétés de l’article
Numéro d’article: 000059197
Type d’article: Solution
Dernière modification: 29 juil. 2025
Version:  4
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.