SRM: A tarefa import-properties tem os seguintes erros: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Falha no link de comunicação
Summary: O socketTimeout pode ser aumentado se a tarefa import-porperties continuar falhando nos tempos de espera excedidos do soquete devido a bancos de dados apg muito carregados.
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
A tarefa de propriedades de importação tem os seguintes erros na conectividade com bancos de dados 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.
A causa da exceção é:
aused by: java.net.SocketTimeoutException: Tempo limite de leitura esgotado
Cause
O socketTimeout será usado na tarefa import-properties para aguardar a extração dos dados da tabela data_property. Se esse tempo for excedido devido a um banco de dados muito carregado naquele momento, a tarefa falhará.
Resolution
Podemos aumentar a configuração socketTimeout no arquivo APG/Web-Servers/Tomcat/Default/conf/server.xml para, por exemplo, 5 minutos (300.000 milissegundos), conforme abaixo:
<!-- 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
SRMArticle 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.