SRM: import-properties görevinde şu hatalar var: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: İletişim bağlantısı hatası

Résumé: Import-porperties görevi aşırı yüklü apg veritabanları nedeniyle soket zaman aşımlarında başarısız olmaya devam ederse socketTimeout artırılabilir.

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

İçe aktarma özellikleri görevi, apg veritabanlarına bağlantıyla ilgili aşağıdaki hataları içeriyor:
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.

İstisnanın nedeni:
aused by: java.net.SocketTimeoutException: Okuma zaman aşımına uğradı

APG/Web-Servers/Tomcat/Default/conf/server.xml konumundaki her veritabanı için ayarlanan socketTimeout, bu örnekte 180.000 milisaniye olarak ayarlanmıştır.

Cause

socketTimeout, import-properties görevinde data_property tablosundan veri çekilmesini beklemek için kullanılır. Bu süre, o sırada çok yüklü bir veritabanı nedeniyle aşılırsa görev başarısız olur.

Résolution

APG/Web-Servers/Tomcat/Default/conf/server.xml dosyasındaki socketTimeout ayarını aşağıdaki gibi örneğin 5 dakika (300000 milisaniye) olacak şekilde artırabiliriz:
<!-- 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.